-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIMOB-26025] TiAPI: Improve Ti.Filesystem.File parity (#10019)
* Add Ti.Filesystem.File#copy() method on iOS. Default Ti.filesystem.File#createDirectory to be recursive like other platforms (but allow passing false as arg to disable). Fix Android returning true for Ti.Filesystem.File#isDirectory() on non-existent Resource sub-dirs. * Don't only run the filesystem tests. Update docs. * Don't run retirejs thoruhg grunt. We already do it separately for Jenkins * Fix invalid doc changes * Fix Ti.Filesystem.File #createTimestamp and #modificationTimestamp to return Numbers not Dates. Deprecate the property versions. Incorporate some of Hans' updates. * Stela more of Hans' work on handling various errors that could happen under the hood with these APIs * Don't skip Ti.Filesystem.File.parent test on iOS * Add Ti.Filesystem.File #createdAt() and #modifiedAt() methods that return Dates. Deprecate #modificationTimestamp() and #createTimestamp() due to inconsistent return types across platforms. Update unit tests to check new createdAt/modifiedAt methods. Add docs for new methods/deprecations. Use longs in place of doubles in Android file APIs whne it's more appropriate. Support getting creation timestamp for files on Android when API 26+. Fix spaceAvailable to use newer more accurate APIs on API level 18+. * Add deprecation log for Ti.Filesystem.File #createTimestamp() and #modificationTimestamp() on Android. * Add Ti.Filesystem.File#append() method on Android, update docs to show it wasn't there before.
- Loading branch information
1 parent
b0f4785
commit 4e4abc8
Showing
8 changed files
with
933 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.