Skip to content

Commit

Permalink
Merge pull request #387 from jburel/issue_358
Browse files Browse the repository at this point in the history
Handle root directory
  • Loading branch information
jburel authored Aug 13, 2023
2 parents f6ccf52 + 79fd9d9 commit 3a35aac
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ private String getFileName() {
File directory = folder;

directory = folder.getParentFile();
if (directory == null) { //root directory
// reset
directory = folder;
}

File[] files = directory.listFiles();
String dirPath = directory.getAbsolutePath() + File.separator;
Expand Down

0 comments on commit 3a35aac

Please sign in to comment.