本文整理了Java中org.neo4j.io.fs.FileUtils.deleteFile()
方法的一些代码示例,展示了FileUtils.deleteFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.deleteFile()
方法的具体详情如下:
包路径:org.neo4j.io.fs.FileUtils
类名称:FileUtils
方法名:deleteFile
暂无
代码示例来源:origin: neo4j/neo4j
@Override
public boolean deleteFile( File fileName )
{
return FileUtils.deleteFile( fileName );
}
代码示例来源:origin: neo4j/neo4j
private void removeMessagesLog( Config config )
{
FileUtils.deleteFile( new File( config.get( database_path ), "messages.log" ) );
}
}
代码示例来源:origin: neo4j/neo4j
private static void deleteFile( File storeDir, String fileName )
{
File metadataStore = new File( storeDir, fileName );
FileUtils.deleteFile( metadataStore );
}
代码示例来源:origin: neo4j/neo4j
deleteFile( toMove );
代码示例来源:origin: neo4j/neo4j
private static File tempStoreDirectory() throws IOException
{
File file = File.createTempFile( "create-db", "neo4j" );
File storeDir = new File( file.getAbsoluteFile().getParentFile(), file.getName() );
FileUtils.deleteFile( file );
return storeDir;
}
代码示例来源:origin: neo4j/neo4j
private void triggerIndexResamplingOnNextStartup()
{
// Trigger index resampling on next at startup
FileUtils.deleteFile( testDirectory.databaseLayout().countStoreA() );
FileUtils.deleteFile( testDirectory.databaseLayout().countStoreB() );
}
}
代码示例来源:origin: neo4j/neo4j
private void shouldComplainIfMissingFile( File file )
{
// given
FileUtils.deleteFile( file );
Map<String,String> params = stringMap();
SslPolicyConfig policyConfig = new SslPolicyConfig( "default" );
params.put( neo4j_home.name(), home.getAbsolutePath() );
params.put( policyConfig.base_directory.name(), "certificates/default" );
Config config = Config.defaults( params );
// when
try
{
SslPolicyLoader.create( config, NullLogProvider.getInstance() );
fail();
}
catch ( Exception e )
{
assertTrue( e.getCause() instanceof FileNotFoundException );
}
}
代码示例来源:origin: org.neo4j/neo4j-io
@Override
public boolean deleteFile( File fileName )
{
return FileUtils.deleteFile( fileName );
}
代码示例来源:origin: org.neo4j/neo4j-dbms
private void removeMessagesLog( Config config )
{
FileUtils.deleteFile( new File( config.get( database_path ), "messages.log" ) );
}
}
代码示例来源:origin: org.neo4j/neo4j-io
deleteFile( toMove );
内容来源于网络,如有侵权,请联系作者删除!