[AC-5082] Ti.Filesystem.File.getDirectoryListing() and Titanium.Network.HTTPClient.getResponseHeader( name ) return unexpected values in different platforms
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-08-18T21:50:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Jose Enrique |
Assignee | Shak Hossain |
Created | 2017-07-13T11:10:14.000+0000 |
Updated | 2017-08-18T21:50:27.000+0000 |
Description
When using getDirectoryListing() and there are no file in the directory in Android return an empty array and in IOS return null.
When using getResponseHeader("name") and the header is not present in Android return a empty string and in IOS return null.
It does not make sense to have a generic api if the answers are not homogeneous across platforms.
Hello, Please provide a sample test code for both case. We will test it for ourself before moving it to production. Thanks.