net.dontdrinkandroot.cache.utils
Class FileUtils
java.lang.Object
net.dontdrinkandroot.cache.utils.FileUtils
public class FileUtils
- extends Object
Required methods from Apache Commons IO FileUtils.
- Author:
- Apache Commons IO
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONE_KB
public static final long ONE_KB
- See Also:
- Constant Field Values
ONE_MB
public static final long ONE_MB
- See Also:
- Constant Field Values
FileUtils
public FileUtils()
deleteDirectory
public static void deleteDirectory(File directory)
throws IOException
- Throws:
IOException
isSymlink
public static boolean isSymlink(File file)
throws IOException
- Throws:
IOException
isSystemWindows
public static boolean isSystemWindows()
cleanDirectory
public static void cleanDirectory(File directory)
throws IOException
- Throws:
IOException
forceDelete
public static void forceDelete(File file)
throws IOException
- Throws:
IOException
copyFile
public static void copyFile(File srcFile,
File destFile)
throws IOException
- Throws:
IOException
copyFile
public static void copyFile(File srcFile,
File destFile,
boolean preserveFileDate)
throws IOException
- Throws:
IOException
closeQuietly
public static void closeQuietly(Closeable closeable)
getTempDirectory
public static File getTempDirectory()
getTempDirectoryPath
public static String getTempDirectoryPath()
listFilesRecursive
public static Collection<File> listFilesRecursive(File directory)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.