arikontiainen
Jun 11, 2019 - 19:49
Iām stuck with creating a directory with code below with Python 3.6 in Pythonista. I seem to get OSError every single time. Any guesses why?
try:
os.makedirs(temp_label_path, mode=0o777, exist_ok=True)
except OSError as e:
sys.exit("\nCan't create {dir}: {err}".format(dir=temp_label_path, err=e))
Where temp_label_path in my iPad is:
/private/var/mobile/Containers/Data/Application/9A1B62CB-9238-4CF8-9A2E-AFE1A2A2457B/tmp/ari_temp/images/supi02