Skip to content

Commit 766a0a0

Browse files
committed
update docstring
1 parent 117cb32 commit 766a0a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs/move.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ def move_dir(
137137
preserve_time (bool): If `True`, try to preserve mtime of the
138138
resources (defaults to `False`).
139139
140+
Raises:
141+
fs.errors.ResourceNotFound: if ``src_path`` does not exist on `src_fs`
142+
fs.errors.DirectoryExpected: if ``src_path`` or one of its
143+
ancestors is not a directory.
144+
fs.errors.IllegalDestination: when moving a folder into itself
140145
"""
141146
with manage_fs(src_fs, writeable=True) as _src_fs:
142147
with manage_fs(dst_fs, writeable=True, create=True) as _dst_fs:

0 commit comments

Comments
 (0)