@@ -83,7 +83,7 @@ var RNFS = {
83
83
} )
84
84
. catch ( convertError ) ;
85
85
} ,
86
-
86
+
87
87
exists ( filepath ) {
88
88
return _exists ( filepath )
89
89
. catch ( convertError ) ;
@@ -150,7 +150,7 @@ var RNFS = {
150
150
. catch ( convertError ) ;
151
151
} ,
152
152
153
- downloadFile ( fromUrl , toFile , begin , progress ) {
153
+ downloadFile ( fromUrl , toFile , method = 'GET' , paramString = '' , begin , progress ) {
154
154
var jobId = getJobId ( ) ;
155
155
var subscriptionIos , subscriptionAndroid ;
156
156
@@ -173,7 +173,7 @@ var RNFS = {
173
173
subscriptionAndroid = DeviceEventEmitter . addListener ( 'DownloadProgress-' + jobId , progress ) ;
174
174
}
175
175
176
- return _downloadFile ( fromUrl , toFile , jobId )
176
+ return _downloadFile ( fromUrl , toFile , method , paramString , jobId )
177
177
. then ( res => {
178
178
if ( subscriptionIos ) subscriptionIos . remove ( ) ;
179
179
if ( subscriptionAndroid ) subscriptionAndroid . remove ( ) ;
@@ -189,7 +189,6 @@ var RNFS = {
189
189
MainBundlePath : RNFSManager . MainBundlePath ,
190
190
CachesDirectoryPath : RNFSManager . NSCachesDirectoryPath ,
191
191
DocumentDirectoryPath : RNFSManager . NSDocumentDirectoryPath ,
192
- ExternalDirectoryPath : RNFSManager . NSExternalDirectoryPath ,
193
192
LibraryDirectoryPath : RNFSManager . NSLibraryDirectoryPath ,
194
193
PicturesDirectoryPath : RNFSManager . NSPicturesDirectoryPath
195
194
} ;
0 commit comments