public static synchronized boolean existsStorage ( final File pStoragePath ) { // if file is existing and folder is a tt-dataplace, delete it if ( pStoragePath . exists ( ) && IOUtils . compareStructure ( pStoragePath , StorageConfiguration . Paths . values ( ) ) == 0 ) { return true ; } else { return false ; } }
Check if Storage exists or not at a given path .