Skip to content

Commit

Permalink
Added note about using recursive flag with rmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
theophilusx committed Aug 11, 2020
1 parent 762ddb2 commit 8fd565d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ Remove a directory. If removing a directory and recursive flag is set to `true`,
- **path:** string. Path to remote directory
- **recursive:** boolean. If true, remove all files and directories in target directory. Defaults to false
**Note**: There has been at least one report that some SFTP servers will allow non-empty directories to be removed even without the recursive flag being set to true. While this is not standard behaviour, it is recommended that users verify the behaviour of rmdir if there are plans to rely on the recursive flag to prevent removal of non-empty directories.
1. Example Use
```javascript
Expand Down
6 changes: 6 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,12 @@ action will fail.
- recursive :: boolean. If true, remove all files and directories in target
directory. Defaults to false

*Note*: There has been at least one report that some SFTP servers will allow
non-empty directories to be removed even without the recursive flag being set to
true. While this is not standard behaviour, it is recommended that users verify
the behaviour of rmdir if there are plans to rely on the recursive flag to
prevent removal of non-empty directories.

**** Example Use

#+begin_src javascript
Expand Down

0 comments on commit 8fd565d

Please # to comment.