mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix(android): file system normalizePath (#10077)
This commit is contained in:
@ -581,9 +581,9 @@ export class FileSystemAccess implements IFileSystemAccess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public normalizePath(path: string): string {
|
public normalizePath(path: string): string {
|
||||||
const file = new java.io.File(path);
|
// the [''] is a trick to not have to create a android.net.URI
|
||||||
|
// and use the method with string signature
|
||||||
return file.getAbsolutePath();
|
return java.nio.file.Paths.get(path, ['']).normalize().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public joinPath(left: string, right: string): string {
|
public joinPath(left: string, right: string): string {
|
||||||
|
Reference in New Issue
Block a user