Class DataStoreCacheUtils

java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.DataStoreCacheUtils

public class DataStoreCacheUtils extends Object
Common utility methods used for DataStore caches.
  • Constructor Details

    • DataStoreCacheUtils

      public DataStoreCacheUtils()
  • Method Details

    • recursiveDelete

      public static void recursiveDelete(File f, File root) throws IOException
      Delete the file from the given root directory all its empty parent-directories.
      Parameters:
      f - the file to be deleted
      Throws:
      IOException
    • getFile

      public static File getFile(String id, File root)
      Obtain a placeholder in the file system folder for the given identifier.
      Parameters:
      id - of the file
      Returns:
      file handle