This is a migrated thread and some comments may be shown as answers.

Simulator FileSystem api bug

1 Answer 46 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Odinko
Top achievements
Rank 1
Odinko asked on 10 Aug 2014, 08:08 AM
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 " ... )

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 13 Aug 2014, 04:01 PM
Hello,

We are aware of this bug in the Simulator related to the File API and we have it logged for further investigation.
Notice that the create flag of the getFile method does not work properly either, but only in the Simulator.
Please accept our apologies and stay tuned for the fix.
Thank you.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Report a bug
Asked by
Odinko
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or