Manages file system operations, particularly folder deletion.
More...
|
boolean | deleteFolderRecursively (final Path folderPath, final String mustEndWithThat) |
| Recursively deletes a folder and its contents if the folder path ends with the specified string.
|
|
|
Throwable | deleteFile (final Path path) |
| Attempts to delete a single file or directory.
|
|
Manages file system operations, particularly folder deletion.
This class implements the IFileSystem interface.
◆ deleteFile()
Throwable fr.softsf.sudokufx.utils.FileSystemManager.deleteFile |
( |
final Path | path | ) |
|
|
package |
Attempts to delete a single file or directory.
- Parameters
-
path | The path of the file or directory to be deleted. |
- Returns
- null if the file was successfully deleted, otherwise returns the Exception that occurred.
◆ deleteFolderRecursively()
boolean fr.softsf.sudokufx.utils.FileSystemManager.deleteFolderRecursively |
( |
final Path | folderPath, |
|
|
final String | mustEndWithThat ) |
Recursively deletes a folder and its contents if the folder path ends with the specified string.
- Parameters
-
folderPath | The path of the folder to be deleted. |
mustEndWithThat | The string that the folder path must end with for deletion to proceed. |
- Returns
- true if the folder was successfully deleted, false otherwise.
Implements fr.softsf.sudokufx.interfaces.IFileSystem.
The documentation for this class was generated from the following file: