Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26578] Windows: Missing trailing separator for directory in Ti.Filesystem.File#nativePath

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-12-11T15:08:58.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.0.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeKota Iguchi
Created2018-11-16T19:37:37.000+0000
Updated2018-12-12T12:36:09.000+0000

Description

There are a number of parity issues with the implementation of Ti.Filesystem.File#getDirectoryListing() on Windows, which can be seen in the tests now skipped there: https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/master/Resources/ti.filesystem.file.test.js#L726-L746 Namely that: - calling it for a file should return null - calling for a directory that does not exist should return null (returns empty array right now) The other test ("can access resource directory files") may be failing due to Windows not appending a trailing separator while other platforms do? I tried with unix and windows separators and that didn't seem to fix it, so I don't think it's a separator mismatch issue.

Comments

  1. Kota Iguchi 2018-12-06

    The getDirectoryListring parity should have been fixed by TIMOB-26159. The resource directory test are failing because of parity issue in nativePath. https://github.com/appcelerator/titanium_mobile_windows/pull/1332
  2. Josh Longton 2018-12-11

    *FR Passed*
  3. Samir Mohammed 2018-12-12

    Closing ticket. Fix verified in SDK version: 8.0.0.v20181212023313. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1332

JSON Source