mirror of https://github.com/termux/termux-app
Fixed: Remove all trailing slashes when normalizing path
This commit is contained in:
parent
f7ebcae7b3
commit
93d738ae63
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue