diff options
Diffstat (limited to 'subplot/ewww.py')
-rw-r--r-- | subplot/ewww.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/subplot/ewww.py b/subplot/ewww.py index d53b74c..6c93733 100644 --- a/subplot/ewww.py +++ b/subplot/ewww.py @@ -40,6 +40,13 @@ def fixme(*args, **kwargs): assert 0 +# Create a directory. +def create_directory(ctx, dirname=None): + dirname = "./" + dirname + if not os.path.exists(dirname): + os.makedirs(dirname) + + # Create a file. def create_file(ctx, filename=None, content=None): logging.debug(f"Creating file {filename} with {content}") |