55 Commits

Author SHA1 Message Date
Hagen Hübel
a5ee52f5c8 Fixed 'RCTJSONStringify() encountered the following error: Invalid type in JSON write (__NSTaggedDate)' 2017-04-27 13:07:19 +02:00
Albert Martin
b139b5d58b Add created and modified dates to ReadDirItem 2017-04-26 09:46:56 -05:00
Arno Fortelny
18ca86e3f5 Fix ctime/utime attributes on .stat()
This fixes the .stat() results so that ctime/utime come through as expected. Looks like it was just an oversight. Fixes #222.
2016-12-29 16:58:13 -05:00
Ben Clayton
065acc400f Android assets support (#83)
New Android-specific asset access methods:

* 'readFileAssets' - read file in assets as string
* 'readDirAssets' - read contents of a directory in assets
* 'existsAssets' - true/false if file does or does not exist in assets
* 'copyFileAssets' - copy a file from assets to a writable directory (e.g. SD Card)
2016-12-06 13:04:09 +00:00
Eric Samelson
e4da23d986 Add hash method for both iOS and Android; update README.md 2016-11-16 13:37:33 -08:00
Kyle Corbitt
59a60acf09 check if callbacks are functions 2016-10-03 17:28:15 -07:00
Chris Dell
47f27b87e9 Fix mkdir options 2016-08-28 09:51:04 +01:00
Kyle Corbitt
bcdcf7d536 remove file:// from paths 2016-08-11 14:13:52 -07:00
Chris Dell
5af22b2782 downloadFile and uploadFiles return objects instead of promises 2016-08-10 20:29:14 +01:00
Chris Dell
7487ff2451 Merge branch 'master' of github.com:johanneslumpe/react-native-fs 2016-08-10 19:57:37 +01:00
Chris Dell
29f58f1560 Removed NS prefixes to avoid confusion 2016-08-10 19:53:24 +01:00
Chris Dell
bd63b34415 Merge pull request #121 from superandrew213/master
Add ExternalStorageDirectoryPath
2016-08-09 22:40:23 +01:00
Kyle Corbitt
848fdb74a2 make mkdir options optional
This PR simplifies the code slightly by using a Javascript default value for `mkdir`'s `options` parameter. It also fixes a flow error that otherwise occurs when `mkdir` is called with only one argument.
2016-08-05 18:48:44 -07:00
Chris Dell
3564b6b22e Removed attributes, cleaned up README 2016-08-02 20:15:06 +01:00
Chris Dell
75a25f693a Android passing tests 2016-08-01 19:36:33 +01:00
Chris Dell
6b78d94ef6 Working towards V2 2016-07-27 00:15:41 +01:00
Chris Dell
b3cef00673 Merge branch 'grabbou-feat/promisify' 2016-07-18 23:15:07 +01:00
Chris Dell
bcecac71af Merge branch 'feat/promisify' of https://github.com/grabbou/react-native-fs into grabbou-feat/promisify 2016-07-18 22:46:13 +01:00
Andrew Shini
838e39d984 Add copyFile 2016-07-03 20:10:24 +10:00
Chris Dell
f1128b26cd Mistake in documentation 2016-06-30 11:45:11 +01:00
Chris Dell
8e1975a4e1 progressDivider now defaults to 0 2016-06-30 00:14:18 +01:00
Chris Dell
3b7a83e6ee Separate appendFile, added flow types 2016-06-30 00:08:53 +01:00
Andrew Shini
e884fc2abc Add ExternalStorageDirectoryPath 2016-06-17 11:48:16 +10:00
Chris Dell
132fb4d6a0 Merge branch 'master' of https://github.com/kitolog/react-native-fs into kitolog-master 2016-06-08 17:52:08 +01:00
Chris Dell
d9b826f03b Added deprecated warning for downloadFile 2016-06-04 08:50:38 +01:00
Chris Dell
be45203b26 Changed downloadFile to use options, preparation for headers 2016-06-02 00:53:22 +01:00
Aaron Franks
3268c3dc89 Add JS API and docs for background downloads (#80) 2016-06-02 00:53:22 +01:00
kitolog
1bc9481a47 Added progressDivider 2016-05-31 12:46:03 +03:00
Chris Dell
45ed423d99 uploadFiles mistakes 2016-05-30 23:35:34 +01:00
Chris Dell
feb0df0113 Manually merged uploadFiles 2016-05-30 23:13:50 +01:00
Mike Grabowski
ae06bcf19d Update FS.common.js 2016-05-19 20:42:08 +02:00
Mike Grabowski
80233d4e6b Update FS.common.js
I guess my PRs were not the best start of contributing :<
2016-05-19 20:38:38 +02:00
Johannes Lumpe
c432a6bf7e Merge pull request #91 from grabbou/feat/optimise-subs
Fixes #90
2016-05-19 14:02:40 +03:00
Mike Grabowski
bdeda5ef36 Fixes 2016-05-14 23:42:57 +02:00
Mike Grabowski
7bf7c0bca1 Add tmp path 2016-05-14 23:41:01 +02:00
Mike Grabowski
f90ec05119 Initial commit 2016-05-14 23:19:27 +02:00
Mike Grabowski
4977508b36 iOS and JS 2016-05-14 22:25:04 +02:00
Kyle Corbitt
33d637e42e new getFSInfo command 2016-05-03 21:25:33 +01:00
Martin Chase
a063f23ed9 connected ExternalDirectoryPath constant to getExternalFilesDir (null for iOS) 2016-03-31 16:16:45 -07:00
Chris Dell
65e81a07fe Merge pull request #48 from iwater/master
add exist method
2016-03-17 19:35:05 +00:00
iwater
f3dd33c003 rename exist to exists 2016-01-29 02:20:02 +08:00
iwater
dd320b3a5a add exist method 2016-01-28 21:36:31 +08:00
Kyle Corbitt
0fd5e85955 moveFile android 2016-01-27 16:53:14 +00:00
Asa Miller
ce2d714c31 add move file method 2016-01-16 10:52:56 -08:00
loox
cc6d63901b adding Caches and Pictures directory to constants in Android 2016-01-05 12:24:42 +01:00
TakiuchiGenki
d4053221fd Fixed a bug 2015-12-02 11:12:06 +09:00
TakiuchiGenki
f4a5add4c4 Added LibraryDirectoryPath. 2015-12-02 11:04:09 +09:00
Chris Dell
97f6eba9c1 downloadFile missing code 2015-11-23 17:09:32 +00:00
Chris Dell
b603084ce7 Refactored downloadFile, added stopDownload 2015-11-23 16:30:27 +00:00
Chris Dell
a8d834fabc downloadFile now has progress callback 2015-11-20 00:16:13 +00:00