mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-02 13:33:11 +00:00
attempting to retain root slash in unix systems
This commit is contained in:
parent
5df758b4f6
commit
2b4fd7f456
@ -58,7 +58,11 @@ export class PathSelector {
|
||||
};
|
||||
|
||||
splitPath = (str) => {
|
||||
return str.replaceAll("\\", "/").split("/");
|
||||
var result = str.replaceAll("\\", "/").split("/");
|
||||
if (str.startsWith("/") && this.roots.includes("/")) {
|
||||
result = ["/", ...result];
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
dropEmptyParts = (parts) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user