|
@@ -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)
|