mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 18:55:31 +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("\\./", "");
|
||||
|
||||
if (path.endsWith("/")) {
|
||||
path = path.substring(0, path.length() - 1);
|
||||
path = path.replaceAll("/+$", "");
|
||||
}
|
||||
|
||||
return path;
|
||||
|
Reference in New Issue
Block a user