-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
|
||
|
||
def print_directory_structure(startpath, max_depth=None, exclude_dirs=None): | ||
# Default list of directories to exclude | ||
if exclude_dirs is None: | ||
exclude_dirs = ['node_modules', '.git', '.mypy_cache'] | ||
|
||
for root, dirs, files in os.walk(startpath): | ||
# Filter out the directories in the exclude list | ||
dirs[:] = [d for d in dirs if d not in exclude_dirs] | ||
|
||
level = root.replace(startpath, '').count(os.sep) | ||
if max_depth is not None and level > max_depth: | ||
continue | ||
indent = '│ ' * level | ||
print(f'{indent}├── {os.path.basename(root)}/') | ||
|
||
for f in files: | ||
print(f'{indent}│ ├── {f}') | ||
|
||
# Usage | ||
# You can extend the exclude list by passing additional directories | ||
print_directory_structure('.', max_depth=2, exclude_dirs=['node_modules', '.git', '.mypy_cache', '__pycache__']) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Model } from "./Model"; | ||
import { Model } from "./Model2"; | ||
|
||
export const model: Model = { | ||
vertexData: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters