We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e99762 + a49dac3 commit cf4a344Copy full SHA for cf4a344
1 file changed
src/imcflibs/pathtools.py
@@ -357,18 +357,6 @@ def folder_size(source):
357
return total_size
358
359
360
-def create_directory(new_path):
361
- """Create a new directory if it does not already exist.
362
-
363
- Parameters
364
- ----------
365
- new_path : str
366
- Path to the new directory.
367
- """
368
- if not os.path.exists(new_path):
369
- os.makedirs(new_path)
370
371
372
# pylint: disable-msg=C0103
373
# we use the variable name 'exists' in its common spelling (lowercase), so
374
# removing this workaround will be straightforward at a later point
0 commit comments