React-native-fetch-blob: Delete entire folder?

Created on 19 Sep 2016  路  4Comments  路  Source: wkh237/react-native-fetch-blob

Hi!
Is there an fs API call that can delete an entire folder?
Iterating over an calling unlink() many times seems bad )-: (slow?)

documentation needs feedback task

Most helpful comment

Hi @yaronlevi , I think this is exactly what we're doing in native unlink implementation, you can delete a folder in a single call

RNFetchBlob.fs.unlink('/path/to/a/folder')

However, if the folder contains lot of files the process might take some time.

All 4 comments

Hi @yaronlevi , I think this is exactly what we're doing in native unlink implementation, you can delete a folder in a single call

RNFetchBlob.fs.unlink('/path/to/a/folder')

However, if the folder contains lot of files the process might take some time.

thanks it worked! thanks
Maybe the docs could be updated "delete file or entire folder". just to be clear

@yaronlevi , thanks for the advice I'll update the document once I have time 馃槃

Please tell me, how i can delete all files in a folder without foreach?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atasmohammadi picture atasmohammadi  路  3Comments

timsuchanek picture timsuchanek  路  4Comments

gonglong picture gonglong  路  3Comments

jiangbophd picture jiangbophd  路  4Comments

Jason0112 picture Jason0112  路  3Comments