Advertisement
Jexal

99738114-09af-4e0a-a9fe-7f9de3f9978f

Jan 19th, 2025
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.10 KB | None | 0 0
  1. import os
  2.  
  3. def generate_ascii_tree():
  4.     # Feel free to modify these lines to your specific needs.
  5.     tree = """Pocket Link Saver Root Folder/
  6.    ├── URLs.txt
  7.    ├── Pocket Link Saver.py
  8.    ├── Notes/
  9.    │   ├── Issues.txt
  10.    │   └── Ideas.txt
  11.    ├── Resources/
  12.    │   └── Scripts/
  13.    │       └── Pocket Tags Extractor.py
  14.    ├── Requirements.txt
  15.    ├── Documentation.pdf
  16.    ├── Tags.txt
  17.    ├── Versions/
  18.    │   ├── Changelog.txt
  19.    │   ├── Pocket Link Saver.py (0.1.0)
  20.    │   └── Pocket Link Saver.py (0.2.0)
  21.    ├── Logs/
  22.    │   ├── Failed Saved URLs.txt
  23.    │   └── Past Saved URLs.txt
  24.    """
  25.     return tree
  26.  
  27. if __name__ == "__main__":
  28.     ascii_tree = generate_ascii_tree()
  29.     with open(r"C:\Scripts\ASCII Tree Structure Generator\Project Tree.txt", "w", encoding="utf-8") as f:
  30.         f.write(ascii_tree)
  31.     print("Editable ASCII tree saved to Project_Tree.txt.")
  32.     os.startfile(r"C:\Scripts\ASCII Tree Structure Generator\Project Tree.txt")
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement