mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 21:20:07 +02:00
update dependencies
This commit is contained in:
10
node_modules/electron-download/node_modules/fs-extra/docs/move.md
generated
vendored
10
node_modules/electron-download/node_modules/fs-extra/docs/move.md
generated
vendored
@@ -1,4 +1,4 @@
|
||||
# move(src, dest, [options], callback)
|
||||
# move(src, dest, [options, callback])
|
||||
|
||||
Moves a file or directory, even across devices.
|
||||
|
||||
@@ -18,6 +18,14 @@ fs.move('/tmp/somefile', '/tmp/does/not/exist/yet/somefile', err => {
|
||||
|
||||
console.log('success!')
|
||||
})
|
||||
|
||||
fs.move('/tmp/somefile', '/tmp/does/not/exist/yet/somefile')
|
||||
.then(() => {
|
||||
console.log('success!')
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err)
|
||||
})
|
||||
```
|
||||
|
||||
**Using `overwrite` option**
|
||||
|
Reference in New Issue
Block a user