Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4915] iOS: Implement "file" property on Titanium.Blob

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-05T13:56:16.000+0000
Affected Version/sRelease 1.7.1
Fix Version/sSprint 2011-36, Release 1.8.0
ComponentsiOS
Labelsparity
ReporterMarshall Culpepper
AssigneeSabil Rahim
Created2011-08-05T14:58:16.000+0000
Updated2011-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.

Comments

  1. Natalie Huynh 2011-08-29

    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"
  2. Sabil Rahim 2011-09-06

    pending pull 443
  3. Natalie Huynh 2011-09-14

    Tested with version=1.8.0 timestamp=09/14/11 11:27 githash=913341a Drillbit Ti.Filesystem tests all passed
  4. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source