mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Merge pull request #1486 from NativeScript/cankov/ios-private-paths
Fix paths in iOS, some devices and iOS combinations use /private/var paths while some /var/ this was normalized by resolvin symlinks
This commit is contained in:
@ -232,7 +232,7 @@ export var testFileReadWriteBinary = function () {
|
||||
var fileName = "logo.png";
|
||||
var error;
|
||||
|
||||
var sourceFile = fs.knownFolders.currentApp().getFile(fileName);
|
||||
var sourceFile = fs.File.fromPath(__dirname + "/" + fileName);
|
||||
var destinationFile = fs.knownFolders.documents().getFile(fileName);
|
||||
|
||||
var source = sourceFile.readSync(e=> { error = e; });
|
||||
|
@ -215,7 +215,9 @@ export class FileSystemAccess {
|
||||
}
|
||||
|
||||
public getLogicalRootPath(): string {
|
||||
return NSBundle.mainBundle().bundlePath;
|
||||
let mainBundlePath = NSBundle.mainBundle().bundlePath;
|
||||
let resolvedPath = NSString.stringWithString(mainBundlePath).stringByResolvingSymlinksInPath;
|
||||
return resolvedPath;
|
||||
}
|
||||
|
||||
public getDocumentsFolderPath(): string {
|
||||
|
Reference in New Issue
Block a user