1
0
Fork 0

bug found, here's the fix

This commit is contained in:
Xavier Fontanet 2024-05-25 18:10:41 +02:00
parent 95e75de815
commit ad2858ee6d
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@ class FileCopier {
}
private boolean isTemporaryDestination(Path destination) {
String temporaryFolderName = ConfigLoader.getLoader()
.getConfig(UPLOADS_PATHS)
.toLowerCase();
return destination.toString()
.contains(UPLOADS_PATHS.name().toLowerCase());
.contains(temporaryFolderName);
}
}