mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Fixed: Remove all trailing slashes when normalizing path
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user