Fixed: Remove all trailing slashes when normalizing path

This commit is contained in:
agnostic-apollo
2021-10-21 23:56:49 +05:00
parent f7ebcae7b3
commit 93d738ae63

View File

@@ -105,7 +105,7 @@ public class FileUtils {
path = path.replaceAll("\\./", ""); path = path.replaceAll("\\./", "");
if (path.endsWith("/")) { if (path.endsWith("/")) {
path = path.substring(0, path.length() - 1); path = path.replaceAll("/+$", "");
} }
return path; return path;