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/list_files/__init__.py
Normal file → Executable file
0
scripts/list_files/__init__.py
Normal file → Executable file
0
scripts/list_files/config.txt
Normal file → Executable file
0
scripts/list_files/config.txt
Normal file → Executable file
4
scripts/list_files/list_files.py
Normal file → Executable file
4
scripts/list_files/list_files.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
from pathlib import Path
|
||||
from ..color_print import color_print
|
||||
|
||||
def main(args):
|
||||
# Set the directory path
|
||||
@@ -10,9 +11,10 @@ def main(args):
|
||||
if args == []:
|
||||
for entry in dir_path.iterdir():
|
||||
if entry.is_dir():
|
||||
print(f"[FOLDER] {entry.name}")
|
||||
color_print.cprint(f"[FOLDER] {entry.name}", "DARKBLUE")
|
||||
elif entry.is_file():
|
||||
print(f"[FILE] {entry.name}")
|
||||
print()
|
||||
elif args == ["--help"] or args == ["-h"]:
|
||||
print("list_files: Bro is lazy on doing this help section")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user