This question is locked. New answers and comments are not allowed.
DirectoryEntry GetFile method (http://docs.phonegap.com/en/1.7.0/cordova_file_file.md.html#DirectoryEntry) should accept both relative and absolute paths. However it currently it only accepts the file name:
// root path = "c:/Users/user/Documents/Telerik/Icenium/Simulator/Storage/Temporary/
1) This works if i put the file directly in the root:
filesystem.root.getFile( "myFile.txt " ... )
2) This doesn't work - i put file in a subfolder:
filesystem.root.getFile( "mydir/myFile.txt " ... )
3) Absolute path doesn't work as well:
filesystem.root.getFile( "c:/Users/myuser/Documents/Telerik/Icenium/Simulator/Storage/Temporary/mydir/myFile.txt " ... )
// root path = "c:/Users/user/Documents/Telerik/Icenium/Simulator/Storage/Temporary/
1) This works if i put the file directly in the root:
filesystem.root.getFile( "myFile.txt " ... )
2) This doesn't work - i put file in a subfolder:
filesystem.root.getFile( "mydir/myFile.txt " ... )
3) Absolute path doesn't work as well:
filesystem.root.getFile( "c:/Users/myuser/Documents/Telerik/Icenium/Simulator/Storage/Temporary/mydir/myFile.txt " ... )