mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +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 {
|
||||
const file = new java.io.File(path);
|
||||
|
||||
return file.getAbsolutePath();
|
||||
// the [''] is a trick to not have to create a android.net.URI
|
||||
// and use the method with string signature
|
||||
return java.nio.file.Paths.get(path, ['']).normalize().toString();
|
||||
}
|
||||
|
||||
public joinPath(left: string, right: string): string {
|
||||
|
Reference in New Issue
Block a user