Package com.gigaspaces.internal.utils
Class FileUtils
java.lang.Object
com.gigaspaces.internal.utils.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyDirectoryRecursively(Path source, Path target) Recursively copy a directorystatic voiddeleteDirectory(File dir) Improved directory deletion with better Windows compatibilitystatic voiddeleteDirectory(File dir, int maxAttempts) static booleandeleteFileRecursive(File file) Improved recursive file deletionstatic voidrenameFile(Path source, Path target) static voidrenameFile(Path source, Path target, int maxAttempts) static voidrenameFileWithCopyFallback(Path source, Path target) Fallback method that copies the source to target, then deletes source
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
renameFile
- Throws:
IOException
-
renameFile
- Throws:
IOException
-
renameFileWithCopyFallback
Fallback method that copies the source to target, then deletes source- Throws:
IOException
-
deleteDirectory
Improved directory deletion with better Windows compatibility- Throws:
IOException
-
deleteDirectory
- Throws:
IOException
-
deleteFileRecursive
Improved recursive file deletion -
copyDirectoryRecursively
Recursively copy a directory- Throws:
IOException
-