Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5082] Ti.Filesystem.File.getDirectoryListing() and Titanium.Network.HTTPClient.getResponseHeader( name ) return unexpected values in different platforms

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-08-18T21:50:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterJose Enrique
AssigneeShak Hossain
Created2017-07-13T11:10:14.000+0000
Updated2017-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.

Comments

  1. Sharif AbuDarda 2017-08-01

    Hello, Please provide a sample test code for both case. We will test it for ourself before moving it to production. Thanks.

JSON Source