[TIMOB-26578] Windows: Missing trailing separator for directory in Ti.Filesystem.File#nativePath
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-12-11T15:08:58.000+0000 |
Affected Version/s | Release 7.5.0 |
Fix Version/s | Release 8.0.0 |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Kota Iguchi |
Created | 2018-11-16T19:37:37.000+0000 |
Updated | 2018-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.
The
getDirectoryListring
parity should have been fixed by TIMOB-26159. The resource directory test are failing because of parity issue innativePath
. https://github.com/appcelerator/titanium_mobile_windows/pull/1332*FR Passed*
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