Linux jobworks 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64
Apache/2.4.58 (Ubuntu)
Server IP : 10.0.1.5 & Your IP : 216.73.217.53
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
python3-rich /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
README.md
264
B
-rw-r--r--
2025-08-05 17:14
attrs.py
1.01
KB
-rw-r--r--
2025-08-05 17:14
bars.py
417
B
-rw-r--r--
2025-08-05 17:14
columns.py
748
B
-rw-r--r--
2025-08-05 17:14
cp_progress.py
571
B
-rw-r--r--
2025-08-05 17:14
downloader.py
2.21
KB
-rw-r--r--
2025-08-05 17:14
dynamic_progress.py
3.93
KB
-rw-r--r--
2025-08-05 17:14
exception.py
919
B
-rw-r--r--
2025-08-05 17:14
export.py
1.65
KB
-rw-r--r--
2025-08-05 17:14
file_progress.py
423
B
-rw-r--r--
2025-08-05 17:14
fullscreen.py
5.36
KB
-rw-r--r--
2025-08-05 17:14
group.py
206
B
-rw-r--r--
2025-08-05 17:14
group2.py
224
B
-rw-r--r--
2025-08-05 17:14
highlighter.py
525
B
-rw-r--r--
2025-08-05 17:14
jobs.py
957
B
-rw-r--r--
2025-08-05 17:14
justify.py
349
B
-rw-r--r--
2025-08-05 17:14
justify2.py
426
B
-rw-r--r--
2025-08-05 17:14
layout.py
1.09
KB
-rw-r--r--
2025-08-05 17:14
link.py
192
B
-rw-r--r--
2025-08-05 17:14
listdir.py
1011
B
-rw-r--r--
2025-08-05 17:14
live_progress.py
1.34
KB
-rw-r--r--
2025-08-05 17:14
log.py
1.9
KB
-rw-r--r--
2025-08-05 17:14
overflow.py
370
B
-rw-r--r--
2025-08-05 17:14
padding.py
132
B
-rw-r--r--
2025-08-05 17:14
print_calendar.py
1.87
KB
-rw-r--r--
2025-08-05 17:14
rainbow.py
441
B
-rw-r--r--
2025-08-05 17:14
recursive_error.py
324
B
-rw-r--r--
2025-08-05 17:14
repr.py
589
B
-rw-r--r--
2025-08-05 17:14
save_table_svg.py
846
B
-rw-r--r--
2025-08-05 17:14
screen.py
357
B
-rw-r--r--
2025-08-05 17:14
spinners.py
533
B
-rw-r--r--
2025-08-05 17:14
status.py
307
B
-rw-r--r--
2025-08-05 17:14
suppress.py
489
B
-rw-r--r--
2025-08-05 17:14
table.py
693
B
-rw-r--r--
2025-08-05 17:14
table_movie.py
4.46
KB
-rw-r--r--
2025-08-05 17:14
top_lite_simulator.py
2.11
KB
-rw-r--r--
2025-08-05 17:14
tree.py
1.71
KB
-rw-r--r--
2025-08-05 17:14
Save
Rename
""" Demonstrates how to display a tree of files / directories with the Tree renderable. """ import os import pathlib import sys from rich import print from rich.filesize import decimal from rich.markup import escape from rich.text import Text from rich.tree import Tree def walk_directory(directory: pathlib.Path, tree: Tree) -> None: """Recursively build a Tree with directory contents.""" # Sort dirs first then by filename paths = sorted( pathlib.Path(directory).iterdir(), key=lambda path: (path.is_file(), path.name.lower()), ) for path in paths: # Remove hidden files if path.name.startswith("."): continue if path.is_dir(): style = "dim" if path.name.startswith("__") else "" branch = tree.add( f"[bold magenta]:open_file_folder: [link file://{path}]{escape(path.name)}", style=style, guide_style=style, ) walk_directory(path, branch) else: text_filename = Text(path.name, "green") text_filename.highlight_regex(r"\..*$", "bold red") text_filename.stylize(f"link file://{path}") file_size = path.stat().st_size text_filename.append(f" ({decimal(file_size)})", "blue") icon = "🐍 " if path.suffix == ".py" else "📄 " tree.add(Text(icon) + text_filename) try: directory = os.path.abspath(sys.argv[1]) except IndexError: print("[b]Usage:[/] python tree.py <DIRECTORY>") else: tree = Tree( f":open_file_folder: [link file://{directory}]{directory}", guide_style="bold bright_blue", ) walk_directory(pathlib.Path(directory), tree) print(tree)