mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2024-11-21 10:53:24 +01:00
🐛 Generate file if it doesn't exist
Signed-off-by: Bjorn Lammers <bjorn@lammers.media>
This commit is contained in:
parent
478994e9cc
commit
16a4a8fd7e
1 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,11 @@ if __name__ == "__main__":
|
|||
print("Please provide at least one folder path.")
|
||||
sys.exit(1)
|
||||
|
||||
# Check if 'tree.json' exists
|
||||
if os.path.exists('tree.json'):
|
||||
print("'tree.json' already exists. No file was created.")
|
||||
sys.exit(0)
|
||||
|
||||
# Generate the combined folder tree for all specified paths
|
||||
combined_folder_tree = generate_combined_tree(folder_paths)
|
||||
|
||||
|
|
Loading…
Reference in a new issue