summaryrefslogtreecommitdiff
path: root/subplot/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'subplot/data.py')
-rw-r--r--subplot/data.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/subplot/data.py b/subplot/data.py
index 3833f2e..d134e5f 100644
--- a/subplot/data.py
+++ b/subplot/data.py
@@ -29,6 +29,13 @@ def create_fifo(ctx, filename=None):
os.mkfifo(filename)
+def create_cachedir_tag_in(ctx, dirpath=None):
+ filepath = f"{dirpath}/CACHEDIR.TAG"
+ logging.debug(f"creating {filepath}")
+ os.makedirs(dirpath, exist_ok=True)
+ open(filepath, "w").write("Signature: 8a477f597d28d172789f06886806bc55")
+
+
def create_nonutf8_filename(ctx, dirname=None):
filename = "\x88"
os.mkdir(dirname)