//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void deleteMustRecursivelyRemoveFilesInGivenDirectory() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void DeleteMustRecursivelyRemoveFilesInGivenDirectory() { File dir = BaseDir; File a = new File(dir, "a"); File b = new File(dir, "b"); CreateOnFileSystem(a); assertTrue(_fs.fileExists(a)); assertFalse(_fs.fileExists(b)); _storeFiles.delete(dir, _logFiles); assertFalse(_fs.fileExists(a)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void close() throws java.io.IOException public override void Close() { if (!_keepStore) { _storeFiles.delete(_tempStoreDir, _tempLogFiles); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public TemporaryStoreDirectory(org.neo4j.io.fs.FileSystemAbstraction fs, org.neo4j.io.pagecache.PageCache pageCache, java.io.File parent) throws java.io.IOException public TemporaryStoreDirectory(FileSystemAbstraction fs, PageCache pageCache, File parent) { this._tempStoreDir = new File(parent, TEMP_COPY_DIRECTORY_NAME); this._tempDatabaseLayout = DatabaseLayout.of(_tempStoreDir, GraphDatabaseSettings.DEFAULT_DATABASE_NAME); _storeFiles = new StoreFiles(fs, pageCache, (directory, name) => true); _tempLogFiles = LogFilesBuilder.logFilesBasedOnlyBuilder(_tempDatabaseLayout.databaseDirectory(), fs).build(); _storeFiles.delete(_tempStoreDir, _tempLogFiles); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void deleteMustNotDeleteIgnoredFiles() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void DeleteMustNotDeleteIgnoredFiles() { File dir = BaseDir; File a = new File(dir, "a"); File c = new File(dir, "c"); CreateOnFileSystem(a); CreateOnFileSystem(c); FilenameFilter filter = (directory, name) => !name.Equals("c") && !name.Equals("d"); _storeFiles = new StoreFiles(_fs, _pageCache, filter); _storeFiles.delete(dir, _logFiles); assertFalse(_fs.fileExists(a)); assertTrue(_fs.fileExists(c)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void deleteMustNotDeleteFilesInIgnoredDirectories() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void DeleteMustNotDeleteFilesInIgnoredDirectories() { File dir = BaseDir; File ignore = new File(dir, "ignore"); File a = new File(dir, "a"); File c = new File(ignore, "c"); CreateOnFileSystem(a); CreateOnFileSystem(c); FilenameFilter filter = (directory, name) => !name.StartsWith("ignore"); _storeFiles = new StoreFiles(_fs, _pageCache, filter); _storeFiles.delete(dir, _logFiles); assertFalse(_fs.fileExists(a)); assertTrue(_fs.fileExists(c)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void delete() throws java.io.IOException public virtual void Delete() { _storeFiles.delete(_databaseLayout.databaseDirectory(), _logFiles); }