Skip to content

Commit 3070378

Browse files
committed
add docstring to emptydirs
1 parent 2fcab30 commit 3070378

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nipype/utils/filemanip.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,14 @@ def makedirs(path, exist_ok=False):
700700

701701

702702
def emptydirs(path):
703+
"""
704+
Empty an existing directory, without deleting it
705+
706+
Parameters
707+
----------
708+
path : directory that should be empty
709+
710+
"""
703711
fmlogger.debug("Removing contents of %s", path)
704712
pathconts = os.listdir(path)
705713

0 commit comments

Comments
 (0)