本文整理了Java中org.neo4j.io.fs.FileUtils.deletePathRecursively()
方法的一些代码示例,展示了FileUtils.deletePathRecursively()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.deletePathRecursively()
方法的具体详情如下:
包路径:org.neo4j.io.fs.FileUtils
类名称:FileUtils
方法名:deletePathRecursively
暂无
代码示例来源:origin: neo4j/neo4j
public static void deleteRecursively( File directory ) throws IOException
{
if ( !directory.exists() )
{
return;
}
Path path = directory.toPath();
deletePathRecursively( path );
}
代码示例来源:origin: neo4j/neo4j
@Override
public void deleteRecursively( File directory ) throws IOException
{
if ( fileExists( directory ) )
{
FileUtils.deletePathRecursively( path( directory ) );
}
}
代码示例来源:origin: neo4j/neo4j
private void deleteIfNecessary( Path databaseDirectory, Path transactionLogsDirectory, boolean force ) throws CommandFailed
{
try
{
if ( force )
{
checkLock( DatabaseLayout.of( databaseDirectory.toFile() ).getStoreLayout() );
FileUtils.deletePathRecursively( databaseDirectory );
if ( !isSameOrChildPath( databaseDirectory, transactionLogsDirectory ) )
{
FileUtils.deletePathRecursively( transactionLogsDirectory );
}
}
}
catch ( IOException e )
{
wrapIOException( e );
}
}
代码示例来源:origin: org.neo4j/neo4j-io
public static void deleteRecursively( File directory ) throws IOException
{
if ( !directory.exists() )
{
return;
}
Path path = directory.toPath();
deletePathRecursively( path );
}
代码示例来源:origin: org.neo4j/neo4j-io
@Override
public void deleteRecursively( File directory ) throws IOException
{
if ( fileExists( directory ) )
{
FileUtils.deletePathRecursively( path( directory ) );
}
}
代码示例来源:origin: org.neo4j/neo4j-dbms
private void deleteIfNecessary( Path databaseDirectory, Path transactionLogsDirectory, boolean force ) throws CommandFailed
{
try
{
if ( force )
{
checkLock( DatabaseLayout.of( databaseDirectory.toFile() ).getStoreLayout() );
FileUtils.deletePathRecursively( databaseDirectory );
if ( !isSameOrChildPath( databaseDirectory, transactionLogsDirectory ) )
{
FileUtils.deletePathRecursively( transactionLogsDirectory );
}
}
}
catch ( IOException e )
{
wrapIOException( e );
}
}
代码示例来源:origin: org.neo4j/neo4j-backup
FileUtils.deletePathRecursively( targetDirectory );
return fullBackup( fileSystem, sourceHostNameOrIp, sourcePort, targetDirectory, consistencyCheck,
config, timeout, forensics );
内容来源于网络,如有侵权,请联系作者删除!