From a49dac355d3e10153433ed3888c2bfdbc56b4dee Mon Sep 17 00:00:00 2001 From: "kai.schleicher@unibas.ch" Date: Wed, 19 Mar 2025 13:14:25 +0100 Subject: [PATCH] Remove create_directory() for issue #43 --- src/imcflibs/pathtools.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/imcflibs/pathtools.py b/src/imcflibs/pathtools.py index f29eb417..40977b22 100644 --- a/src/imcflibs/pathtools.py +++ b/src/imcflibs/pathtools.py @@ -357,18 +357,6 @@ def folder_size(source): return total_size -def create_directory(new_path): - """Create a new directory if it does not already exist. - - Parameters - ---------- - new_path : str - Path to the new directory. - """ - if not os.path.exists(new_path): - os.makedirs(new_path) - - # pylint: disable-msg=C0103 # we use the variable name 'exists' in its common spelling (lowercase), so # removing this workaround will be straightforward at a later point