SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.utils.FileSystemManager Class Reference

Manages file system operations, particularly folder deletion. More...

+ Inheritance diagram for fr.softsf.sudokufx.utils.FileSystemManager:
+ Collaboration diagram for fr.softsf.sudokufx.utils.FileSystemManager:

Public Member Functions

boolean deleteFolderRecursively (final Path folderPath, final String mustEndWithThat)
 Recursively deletes a folder and its contents if the folder path ends with the specified string.
 
- Public Member Functions inherited from fr.softsf.sudokufx.interfaces.IFileSystem

Package Functions

Throwable deleteFile (final Path path)
 Attempts to delete a single file or directory.
 

Detailed Description

Manages file system operations, particularly folder deletion.

This class implements the IFileSystem interface.

Member Function Documentation

◆ deleteFile()

Throwable fr.softsf.sudokufx.utils.FileSystemManager.deleteFile ( final Path path)
package

Attempts to delete a single file or directory.

Parameters
pathThe 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
folderPathThe path of the folder to be deleted.
mustEndWithThatThe 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: