| 
				
			 | 
			
			
				@@ -6,7 +6,9 @@ import android.content.res.AssetFileDescriptor; 
			 | 
		
	
		
			
			| 
				6
			 | 
			
				6
			 | 
			
			
				 import android.media.MediaScannerConnection; 
			 | 
		
	
		
			
			| 
				7
			 | 
			
				7
			 | 
			
			
				 import android.net.Uri; 
			 | 
		
	
		
			
			| 
				8
			 | 
			
				8
			 | 
			
			
				 import android.os.AsyncTask; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				9
			 | 
			
			
				+import android.os.Build; 
			 | 
		
	
		
			
			| 
				9
			 | 
			
				10
			 | 
			
			
				 import android.os.Environment; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				11
			 | 
			
			
				+import android.os.StatFs; 
			 | 
		
	
		
			
			| 
				10
			 | 
			
				12
			 | 
			
			
				 import android.os.SystemClock; 
			 | 
		
	
		
			
			| 
				11
			 | 
			
				13
			 | 
			
			
				 import android.util.Base64; 
			 | 
		
	
		
			
			| 
				12
			 | 
			
				14
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -744,6 +746,20 @@ public class RNFetchBlobFS { 
			 | 
		
	
		
			
			| 
				744
			 | 
			
				746
			 | 
			
			
				         } 
			 | 
		
	
		
			
			| 
				745
			 | 
			
				747
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				746
			 | 
			
				748
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				749
			 | 
			
			
				+    static void df(Callback callback) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				750
			 | 
			
			
				+        StatFs stat = new StatFs(Environment.getDataDirectory().getPath()); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				751
			 | 
			
			
				+        WritableMap args = Arguments.createMap(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				752
			 | 
			
			
				+        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				753
			 | 
			
			
				+            args.putString("internal_free", String.valueOf(stat.getFreeBytes())); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				754
			 | 
			
			
				+            args.putString("internal_total", String.valueOf(stat.getTotalBytes())); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				755
			 | 
			
			
				+            StatFs statEx = new StatFs(Environment.getExternalStorageDirectory().getPath()); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				756
			 | 
			
			
				+            args.putString("external_free", String.valueOf(statEx.getFreeBytes())); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				757
			 | 
			
			
				+            args.putString("external_total", String.valueOf(statEx.getTotalBytes())); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				758
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				759
			 | 
			
			
				+        } 
			 | 
		
	
		
			
			| 
				
			 | 
			
				760
			 | 
			
			
				+        callback.invoke(null ,args); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				761
			 | 
			
			
				+    } 
			 | 
		
	
		
			
			| 
				
			 | 
			
				762
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				747
			 | 
			
				763
			 | 
			
			
				     /** 
			 | 
		
	
		
			
			| 
				748
			 | 
			
				764
			 | 
			
			
				      * Remove files in session. 
			 | 
		
	
		
			
			| 
				749
			 | 
			
				765
			 | 
			
			
				      * @param paths An array of file paths. 
			 |