Package org.craftercms.core.util
Class ContentStoreUtils
java.lang.Object
org.craftercms.core.util.ContentStoreUtils
Utility methods for content store.
- Since:
- 3.1.4
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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).
-
Method Details
-
normalizePath
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 '/')
-