Skip to content

Commit

Permalink
Merge pull request #31
Browse files Browse the repository at this point in the history
bugfix/local-file-list
  • Loading branch information
paulophgf authored Jan 25, 2023
2 parents b170b70 + 6b1cd1a commit 17ced71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public List<FileItem> listFiles(String path) {
List<FileItem> fileItems = new ArrayList<>();
for(File file : dir.listFiles()) {
String fileName = file.isDirectory() ? file.getName() + "/" : file.getName();
String fsPath = (path.startsWith("/") ? pathDir.substring(1) : pathDir) + "/";
String fsPath = pathDir + "/";
String mimeType = URLConnection.guessContentTypeFromName(file.getName());
fileItems.add(new FileItem(fsPath, fileName, file.isDirectory(), mimeType, file.length()));
}
Expand Down

0 comments on commit 17ced71

Please sign in to comment.