did some shi and finished two commands and a basic structure
This commit is contained in:
0
scripts/list_files/__init__.py
Normal file
0
scripts/list_files/__init__.py
Normal file
0
scripts/list_files/config.txt
Normal file
0
scripts/list_files/config.txt
Normal file
15
scripts/list_files/list_files.py
Normal file
15
scripts/list_files/list_files.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
|
||||
def main():
|
||||
# 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
|
||||
|
||||
for entry in dir_path.iterdir():
|
||||
if entry.is_dir():
|
||||
print(f"[FOLDER] {entry.name}")
|
||||
elif entry.is_file():
|
||||
print(f"[FILE] {entry.name}")
|
||||
Reference in New Issue
Block a user