Well, this is after the 4/29 turmoil and everything seems to be working... Some of the stuff was not commited before the turmoil. However, it seems intact here... My next plan of action is full "disk" encyption with the P7C_ENC protocol and adding built-in P7C and other apps, converting them into "terminal line" tools.
This commit is contained in:
0
scripts/make_directory/__init__.py
Executable file
0
scripts/make_directory/__init__.py
Executable file
17
scripts/make_directory/make_directory.py
Executable file
17
scripts/make_directory/make_directory.py
Executable file
@@ -0,0 +1,17 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
def main(args):
|
||||
if not args:
|
||||
print("make_directory: no arguments were given")
|
||||
return
|
||||
|
||||
for item in args:
|
||||
# Get the ABSOLUTE path to be 100% sure where it's going
|
||||
dir_path = Path(item).resolve()
|
||||
|
||||
try:
|
||||
dir_path.mkdir(parents=True, exist_ok=True)
|
||||
# This line is key: it tells you EXACTLY where it went
|
||||
except Exception as e:
|
||||
print(f"make_directory: error creating directory {item}: {e}")
|
||||
Reference in New Issue
Block a user