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 Details

    • 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 '/')