Class DataStoreCacheUtils


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

      • DataStoreCacheUtils

        public DataStoreCacheUtils()
    • Method Detail

      • 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