Browse Source

Modify js interface

Ben Hsieh 8 years ago
parent
commit
e48d86504c
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/fs.js

+ 3
- 3
src/fs.js View File

@@ -152,7 +152,7 @@ function mkdir(path:string):Promise {
152 152
       if(err)
153 153
         reject(err)
154 154
       else
155
-        resolve(res)
155
+        resolve()
156 156
     })
157 157
   })
158 158
 
@@ -216,8 +216,8 @@ function exists(path:string):Promise<bool, bool> {
216 216
 
217 217
   return new Promise((resolve, reject) => {
218 218
     try {
219
-      RNFetchBlob.exists(path, (exist, isDir) => {
220
-        resolve(exist, isDir)
219
+      RNFetchBlob.exists(path, (exist) => {
220
+        resolve(exist)
221 221
       })
222 222
     } catch(err) {
223 223
       reject(err)