[TIMOB-5055] Filesystem blob returns false during exists() call in drillbit
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-09-14T11:38:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2011-35, Release 1.8.0 |
Components | iOS |
Labels | n/a |
Reporter | Reggie Seagraves |
Assignee | Sabil Rahim |
Created | 2011-08-19T10:27:53.000+0000 |
Updated | 2014-06-19T12:46:43.000+0000 |
Description
Error cases
blobFile false 63 should be true: was:false
blobFile: function() {
52 var filename = 'blobtest';
53 var testphrase = 'Revenge of the Blob';
54 var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename);
55
56 if (file.exists()) {
57 file.deleteFile();
58 }
59 file.write(testphrase);
60 var blob = file.read();
61 var blobFile = blob.file;
62 valueOf(blobFile.nativePath).shouldBe(file.nativePath);
63 valueOf(blobFile.exists()).shouldBeTrue();
64 var readphrase = blobFile.read().text;
65 valueOf(readphrase).shouldBe(testphrase);
66 file = null;
67 },
pending pull # 443 duplicated in jira timob-4915
Duplicate of 4915