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

Commit ed11738

Browse files
committed
Merge pull request #92 from timsuchanek/0.10.0
Added SDCard for Android
1 parent b1dc79e commit ed11738

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

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ static public Map<String, Object> getSystemfolders(ReactApplicationContext ctx)
192192
res.put("DownloadDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath());
193193
res.put("MovieDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getAbsolutePath());
194194
res.put("RingtoneDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_RINGTONES).getAbsolutePath());
195+
res.put("SDCard", Environment.getExternalStorageDirectory().getAbsolutePath());
195196
return res;
196197
}
197198

src/fs.js

+2-1
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)