20 lines
663 B
Python
20 lines
663 B
Python
from pathlib import Path
|
|
|
|
def main(args):
|
|
# Set the directory path
|
|
script_dir = Path(__file__).resolve().parent
|
|
dir_path = Path("")
|
|
|
|
# Use the current script's directory or specify a path
|
|
base_path = Path(__file__).resolve().parent
|
|
if args == []:
|
|
for entry in dir_path.iterdir():
|
|
if entry.is_dir():
|
|
print(f"[FOLDER] {entry.name}")
|
|
elif entry.is_file():
|
|
print(f"[FILE] {entry.name}")
|
|
elif args == ["--help"] or args == ["-h"]:
|
|
print("list_files: Bro is lazy on doing this help section")
|
|
else:
|
|
print("list_files: Invalid arguments, try using none?")
|