treex-cli 0.1.3__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {treex_cli-0.1.3/treex_cli.egg-info → treex_cli-0.1.4}/PKG-INFO +5 -5
- {treex_cli-0.1.3 → treex_cli-0.1.4}/README.md +4 -4
- {treex_cli-0.1.3 → treex_cli-0.1.4}/pyproject.toml +1 -1
- {treex_cli-0.1.3 → treex_cli-0.1.4}/treex.py +9 -5
- {treex_cli-0.1.3 → treex_cli-0.1.4/treex_cli.egg-info}/PKG-INFO +5 -5
- {treex_cli-0.1.3 → treex_cli-0.1.4}/LICENSE +0 -0
- {treex_cli-0.1.3 → treex_cli-0.1.4}/setup.cfg +0 -0
- {treex_cli-0.1.3 → treex_cli-0.1.4}/treex_cli.egg-info/SOURCES.txt +0 -0
- {treex_cli-0.1.3 → treex_cli-0.1.4}/treex_cli.egg-info/dependency_links.txt +0 -0
- {treex_cli-0.1.3 → treex_cli-0.1.4}/treex_cli.egg-info/entry_points.txt +0 -0
- {treex_cli-0.1.3 → treex_cli-0.1.4}/treex_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: treex-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: List directory contents as a tree with file metadata
|
|
5
5
|
Author: Corey Goldberg
|
|
6
6
|
Maintainer: Corey Goldberg
|
|
@@ -39,10 +39,10 @@ Dynamic: license-file
|
|
|
39
39
|
`treex` is a command-line utility that recursively scans a directory and
|
|
40
40
|
displays its contents as a tree along with file metadata.
|
|
41
41
|
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
42
|
+
- Displays human-readable file sizes
|
|
43
|
+
- Shows line counts for text files
|
|
44
|
+
- Identifies binary and unreadable files by type
|
|
45
|
+
- Optionally displays modification timestamps
|
|
46
46
|
- Respects `.gitignore` rules when Git is installed
|
|
47
47
|
|
|
48
48
|
----
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
`treex` is a command-line utility that recursively scans a directory and
|
|
15
15
|
displays its contents as a tree along with file metadata.
|
|
16
16
|
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
17
|
+
- Displays human-readable file sizes
|
|
18
|
+
- Shows line counts for text files
|
|
19
|
+
- Identifies binary and unreadable files by type
|
|
20
|
+
- Optionally displays modification timestamps
|
|
21
21
|
- Respects `.gitignore` rules when Git is installed
|
|
22
22
|
|
|
23
23
|
----
|
|
@@ -179,6 +179,14 @@ def _collect_tree(
|
|
|
179
179
|
rows.append((tree_name, (size_text, info, timestamp)))
|
|
180
180
|
|
|
181
181
|
|
|
182
|
+
def print_summary(stats):
|
|
183
|
+
print(
|
|
184
|
+
f"{stats['directories']:,} directories • "
|
|
185
|
+
f"{stats['files']:,} files • "
|
|
186
|
+
f"{_format_size(stats['total_size'])}"
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
|
|
182
190
|
def print_tree(
|
|
183
191
|
directory,
|
|
184
192
|
prefix="",
|
|
@@ -263,11 +271,7 @@ def main():
|
|
|
263
271
|
)
|
|
264
272
|
if show_tree:
|
|
265
273
|
print()
|
|
266
|
-
|
|
267
|
-
f"{stats['directories']} directories • "
|
|
268
|
-
f"{stats['files']} files • "
|
|
269
|
-
f"{_format_size(stats['total_size'])}"
|
|
270
|
-
)
|
|
274
|
+
print_summary(stats)
|
|
271
275
|
return 0
|
|
272
276
|
|
|
273
277
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: treex-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: List directory contents as a tree with file metadata
|
|
5
5
|
Author: Corey Goldberg
|
|
6
6
|
Maintainer: Corey Goldberg
|
|
@@ -39,10 +39,10 @@ Dynamic: license-file
|
|
|
39
39
|
`treex` is a command-line utility that recursively scans a directory and
|
|
40
40
|
displays its contents as a tree along with file metadata.
|
|
41
41
|
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
42
|
+
- Displays human-readable file sizes
|
|
43
|
+
- Shows line counts for text files
|
|
44
|
+
- Identifies binary and unreadable files by type
|
|
45
|
+
- Optionally displays modification timestamps
|
|
46
46
|
- Respects `.gitignore` rules when Git is installed
|
|
47
47
|
|
|
48
48
|
----
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|