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:
Panayot Cankov
2016-02-04 14:30:48 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -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; });