org.neo4j.io.fs.FileUtils.deleteFile()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中org.neo4j.io.fs.FileUtils.deleteFile()方法的一些代码示例,展示了FileUtils.deleteFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.deleteFile()方法的具体详情如下:
包路径:org.neo4j.io.fs.FileUtils
类名称:FileUtils
方法名:deleteFile

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 );

相关文章