Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5055] Filesystem blob returns false during exists() call in drillbit

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2011-09-14T11:38:15.000+0000
Affected Version/sn/a
Fix Version/sSprint 2011-35, Release 1.8.0
ComponentsiOS
Labelsn/a
ReporterReggie Seagraves
AssigneeSabil Rahim
Created2011-08-19T10:27:53.000+0000
Updated2014-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 },

Comments

  1. Sabil Rahim 2011-09-06

    pending pull # 443 duplicated in jira timob-4915
  2. Natalie Huynh 2011-09-14

    Duplicate of 4915

JSON Source