Skip to content

Commit

Permalink
updated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Jan 11, 2025
1 parent f8d60fe commit 2472bd2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Webserver/Programs/File_manager/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,23 +336,23 @@ def main(args):
else:
raise ImportError(f"You are missing {program} form your path, please install or update them...")

try:
directory = os.path.abspath(item)
except IndexError:
print("Some type of error happened...")
else:
tree = Tree(f"[link file://{directory}]{directory}", guide_style="bold bright_blue",)
walk_directory(pathlib.Path(directory), tree)
print(tree)
if os.path.isdir(item):
try:
directory = os.path.abspath(item)
except IndexError:
print("Some type of error happened...")
else:
tree = Tree(f"[link file://{directory}]{directory}", guide_style="bold bright_blue",)
walk_directory(pathlib.Path(directory), tree)
print(tree)

go_on = confirm(text="Are you sure you want to touch this folder or files?")
go_on = confirm(text="Are you sure you want to touch these folders?")

if go_on:
pass
else:
sys.exit(0)

if go_on:
pass
else:
sys.exit(0)

if os.path.isdir(item):
for root, dirs, files in os.walk(item):
for file in files:
list_of_items.append(os.path.join(root, file))
Expand Down

0 comments on commit 2472bd2

Please sign in to comment.