cleanup makedir

This commit is contained in:
phixxy 2026-03-05 14:38:59 -08:00
parent 77f313001a
commit 842daf7924

View file

@ -5,10 +5,6 @@ import argparse
import time
import tempfile
def make_dir(d):
if not os.path.exists(d):
os.mkdir(d)
def delete_all(d):
files = list_all(d)
if not files:
@ -57,7 +53,7 @@ def run(editor, sk_path, filename=None):
def main():
home_path = os.getenv("HOME")
sk_path = os.path.join(home_path, ".skratch")
make_dir(sk_path)
os.makedirs(sk_path, exist_ok=True)
parser = argparse.ArgumentParser(
prog='skratch',