Exclude .qortal directory in validation functions, as it was incorrectly failing with "DIRECTORIES_NOT_ALLOWED".

This commit is contained in:
CalDescent
2023-01-20 10:40:20 +00:00
parent c3f19ea0c1
commit 1f7fec6251
2 changed files with 104 additions and 0 deletions

View File

@@ -35,6 +35,9 @@ public enum Service {
}
if (files != null) {
for (File file : files) {
if (file.getName().equals(".qortal")) {
continue;
}
if (file.isDirectory()) {
return ValidationResult.DIRECTORIES_NOT_ALLOWED;
}
@@ -105,6 +108,9 @@ public enum Service {
}
if (files != null) {
for (File file : files) {
if (file.getName().equals(".qortal")) {
continue;
}
if (file.isDirectory()) {
return ValidationResult.DIRECTORIES_NOT_ALLOWED;
}