78 Commits

Author SHA1 Message Date
William Krause
fb13cb7c5f catch error in downloadFile 2018-01-03 18:12:43 -06:00
Egor Merkushev
6f2f5cd3fa
Fix Flow error for DownloadFileOptions type 2017-12-11 14:53:12 +03:00
Hagen Hübel
23c06911b0 Fixed return types of getAllExternalFilesDirs 2017-12-10 14:53:39 +01:00
Hagen Hübel
fd39484c75 Merge branch 'master' of https://github.com/ngrj/react-native-fs into ngrj-master
* 'master' of https://github.com/ngrj/react-native-fs:
  added a function called getAllExternalFilesDirs to get application-specific directories on all shared/external storage devices
2017-12-10 14:52:17 +01:00
Hagen Hübel
c27b5feb8f FIxed merge conflict 2017-12-10 12:31:41 +01:00
Joseph Roque
5e0af48f9f
Make mtime optional on ReadDirItem, change utime to mtime on StatResult
Android and iOS both set  for stat method, so this type declaration must be updated. Making mtime optional on ReadDirItem fixes #378
2017-11-06 17:17:14 -05:00
Nagraj Gajengi
0a4513760e added a function called getAllExternalFilesDirs to get application-specific directories on all shared/external storage devices 2017-10-23 15:38:22 +05:30
Hagen Hübel
bcf81df6f8 Merge branch 'master' of github.com:itinance/react-native-fs
* 'master' of github.com:itinance/react-native-fs: (25 commits)
  fix touch() error on android
  Fixed Mtime
  Add missing flow annotations
  v2.5.2 (cocoapods related only)
  removed osx-version from Podspec
  added a note for cocoapods that we can't support it yet
  added a note for cocoapods that we can't support it yet
  Changes to the Podspec
  Changelog for README
  Version 2.5.0 - compat with RN 0.47.0
  Added back for Backward-Compat but without @override
  Version bump 2.4.0
  removed createJSModules method (RN 0.47 breaking change)
  Add `createJSModules()` to be compatible with latest React.
  Update SDK compile and build tools to version 26.
  update README
  add read method with lenght and position params
  add `touch` method for changing file timestamps
  Remove createJSModules from package
  pod file path error
  ...
2017-09-26 05:55:05 +02:00
Hagen Hübel
01e8975d86 added support for Video-Assets on iOS (copyAssetsVideoIOS) and setReadable() on Android 2017-09-26 05:53:51 +02:00
Elad Gil
fefd456261 completeHandlerIOS now return a promise so you can await for it 2017-09-04 16:02:47 +03:00
James Zhan
487e519251 fix touch() error on android 2017-08-31 16:30:46 +10:00
Elad Gil
f58f726d8e better background downloads 2017-08-22 11:22:27 +03:00
Sam Murray
6624f1b0cd Add missing flow annotations 2017-08-03 21:28:42 +01:00
Elad Gil
89fc39dcce Added resumeDownload(), isResumable() and the ‘resume’ callback to downloadFile 2017-08-01 13:18:30 +03:00
Samet Demir
a39c22be81 add read method with lenght and position params 2017-07-16 15:18:55 +03:00
Martin Rädlinger
646ca20f64 add touch method for changing file timestamps 2017-06-30 09:38:22 +02:00
Saurabh Agrawal
a159776baa added additional parameters readTimeout and connectionTimeout with pre-existing defaults for android. 2017-06-01 16:45:06 +05:30
Alexey Puchkov
b157767157 Merge remote-tracking branch 'upstream/master' 2017-05-11 08:32:08 +03:00
Hagen Huebel
26657b46d8 fixed property-names for created/ctime and modified/mtime in ReadDirItem 2017-05-02 00:46:21 +02:00
William Schurman
92bd954f62 Fix flowtype of date object in ReadDirItem
This commit also upgrades flow bin to match .flowconfig version and adds a npm script to run flow check.
2017-05-01 14:49:36 -07:00
IjzerenHein
3c3042fb61 Added write function for performing random access writes (node-js fs style) 2017-04-29 12:38:10 +02:00
Hagen Hübel
715ffec56d Added copyAssetsFileIOS to support asset-library-Files from camera-roll in iOS 2017-04-28 00:59:29 +02:00
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
Alexey Puchkov
8300312422 Add pathForGroup method 2017-02-01 14:48:07 +02: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