mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Minor
This commit is contained in:
parent
4299a2326e
commit
75441946a1
@ -843,14 +843,16 @@ public class Server {
|
|||||||
private static List<File> getAllContentsInFolder(String path) {
|
private static List<File> getAllContentsInFolder(String path) {
|
||||||
File directory = new File(path);
|
File directory = new File(path);
|
||||||
File[] contents = directory.listFiles();
|
File[] contents = directory.listFiles();
|
||||||
// the directory file is not really a directory..
|
|
||||||
if (contents == null) {
|
if (contents == null) {
|
||||||
|
// the directory file is not really a directory..
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
} // Folder is empty
|
}
|
||||||
else if (contents.length == 0) {
|
else if (contents.length == 0) {
|
||||||
|
// Folder is empty
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
} // Folder has contents
|
}
|
||||||
else {
|
else {
|
||||||
|
// Folder has contents
|
||||||
return new ArrayList<>(Arrays.asList(contents));
|
return new ArrayList<>(Arrays.asList(contents));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user