REFACTOR code to use Optional entity
This commit is contained in:
@@ -118,7 +118,7 @@ public class DirectoryService {
|
||||
|
||||
try {
|
||||
Files.delete(file.toPath());
|
||||
logger.info("Deleted file: {}", file.getAbsolutePath());
|
||||
logger.debug("Deleted file: {}", file.getAbsolutePath());
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
logger.error("Error deleting file: {}", e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user