[TIMOB-4915] iOS: Implement "file" property on Titanium.Blob
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-05T13:56:16.000+0000 |
Affected Version/s | Release 1.7.1 |
Fix Version/s | Sprint 2011-36, Release 1.8.0 |
Components | iOS |
Labels | parity |
Reporter | Marshall Culpepper |
Assignee | Sabil Rahim |
Created | 2011-08-05T14:58:16.000+0000 |
Updated | 2011-11-05T13:56:16.000+0000 |
Description
We currently have a "nativePath" property on Titanium.Blob that returns the file's path as a file:// URL, but iOS also exposes a "path" property that returns the full path (without the URL prefix) that we need to match for parity.
UPDATE: further discussion between iOS and Android teams decided that instead of a path property, we should instead expose a "file" property that returns the File proxy that represents the blob data or return null if no valid file was found.
Tested with: version=1.8.0 timestamp=08/29/11 10:55 githash=094a13d iphone results optionalArgAPIs true 10 Success readWriteText true 31 Success blobNativeFile true 49 Success blobFile false 63 should be true, was: false dotSlash true 76 Success appendStringTest true 101 Success appendBlobTest true 122 Success appendFileTest true 144 Success fileStreamBasicTest true 192 Success fileStreamWriteTest true 216 Success fileStreamAppendTest true 255 Success fileStreamPumpTest true 284 Success fileStreamWriteStreamTest true 304 Success fileStreamResourceFileTest true 304 Success fileStreamTruncateTest true 346 Success fileMove true 371 Success tempDirTest true 391 Success emptyFile false 398 should be: "0", was: "118"
pending pull 443
Tested with version=1.8.0 timestamp=09/14/11 11:27 githash=913341a Drillbit Ti.Filesystem tests all passed
Standardizing summary and labels.