note to future me

This commit is contained in:
pdxlocations
2025-07-21 23:18:11 -07:00
parent fe1f027219
commit a451d1d7d6

View File

@@ -7,6 +7,11 @@ from typing import Dict
script_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.abspath(os.path.join(script_dir, os.pardir))
# To test writting to a non-writable directory, you can uncomment the following lines:
# mkdir /tmp/test_nonwritable
# chmod -w /tmp/test_nonwritable
# parent_dir = "/tmp/test_nonwritable"
def _is_writable_dir(path: str) -> bool:
"""