simply use File implementation as we are now 1.7 required

This commit is contained in:
Olivier Lamy 2014-04-22 12:02:32 +10:00
parent 7fba33c0bb
commit 9a09994c8c
1 changed files with 1 additions and 26 deletions

View File

@ -276,32 +276,7 @@ public class DefaultFileLockManager
private boolean mkdirs( File directory )
{
if ( directory == null )
{
return false;
}
if ( directory.exists() )
{
return false;
}
if ( directory.mkdir() )
{
return true;
}
File canonDir = null;
try
{
canonDir = directory.getCanonicalFile();
}
catch ( IOException e )
{
return false;
}
File parentDir = canonDir.getParentFile();
return ( parentDir != null && ( mkdirs( parentDir ) || parentDir.exists() ) && canonDir.mkdir() );
return directory.mkdirs();
}
@Override