mirror of
https://github.com/status-im/react-native-fs.git
synced 2025-02-28 15:00:29 +00:00
moveFile added to README
This commit is contained in:
parent
0fd5e85955
commit
4f54f85bba
@ -192,6 +192,10 @@ Write the `contents` to `filepath`. `encoding` can be one of `utf8` (default), `
|
||||
|
||||
The promise resolves with a boolean.
|
||||
|
||||
### `promise moveFile(filepath, destPath)`
|
||||
|
||||
Moves the file located at `filepath` to `destPath`. This is more performant than reading and then re-writing the file data because the move is done natively and the data doesn't have to be copied or cross the bridge.
|
||||
|
||||
### `promise unlink(filepath)`
|
||||
|
||||
Unlinks the item at `filepath`. If the item does not exist, an error will be thrown.
|
||||
|
Loading…
x
Reference in New Issue
Block a user