Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit ce46768

Browse files
committed
Merge branch '0.10.0' of github.com:wkh237/react-native-fetch-blob into 0.10.0
2 parents 9b7a81b + 8c33869 commit ce46768

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ static public Map<String, Object> getSystemfolders(ReactApplicationContext ctx)
208208
res.put("DownloadDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath());
209209
res.put("MovieDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getAbsolutePath());
210210
res.put("RingtoneDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_RINGTONES).getAbsolutePath());
211+
res.put("SDCard", Environment.getExternalStorageDirectory().getAbsolutePath());
211212
return res;
212213
}
213214

src/fs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const dirs = {
2828
MusicDir : RNFetchBlob.MusicDir,
2929
MovieDir : RNFetchBlob.MovieDir,
3030
DownloadDir : RNFetchBlob.DownloadDir,
31-
DCIMDir : RNFetchBlob.DCIMDir
31+
DCIMDir : RNFetchBlob.DCIMDir,
32+
SDCardDir : RNFetchBlob.SDCardDir
3233
}
3334

3435
/**

0 commit comments

Comments
 (0)