Package org.craftercms.core.util
Class ContentStoreUtils
- java.lang.Object
-
- org.craftercms.core.util.ContentStoreUtils
-
public class ContentStoreUtils extends Object
Utility methods for content store.- Since:
- 3.1.4
- Author:
- avasquez
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
normalizePath(String path)
Normalize the path: this means, append a leading '/' at the beginning and remove any trailing '/' (unless the path is root).
-
-
-
Method Detail
-
normalizePath
public static final String normalizePath(String path)
Normalize the path: this means, append a leading '/' at the beginning and remove any trailing '/' (unless the path is root). This is done for consistency in handling paths.- Parameters:
path
-- Returns:
- the normalized path (with a leading '/' and without a trailing '/')
-
-