anduin / Quicky glance a folder to view brief content
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
1 | # glance - Provides a quick and intelligent overview of a directory's contents. |
2 | # |
3 | # Authors: anduin |
4 | # |
5 | # Features: |
6 | # - Auto-detects Git repositories to intelligently list files. |
7 | # - Dynamically calculates and adjusts the `tree` view depth to prevent clutter. |
8 | # - File content display strictly adheres to the calculated tree depth. |
9 | # - Limits the maximum lines printed per file to avoid long scrolls. |
10 | # - Supports powerful filtering by file glob patterns. |
anduin / Delete obsolete versions of AnduinOS
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
1 | #!/usr/bin/env python3 |
2 | # -*- coding: utf-8 -*- |
3 | |
4 | """ |
5 | 按分支(1.0、1.1、1.2、1.3…)仅保留该分支中“最高版本目录”的 .iso 文件,删除其余版本目录中的 .iso。 |
6 | - 仅删除 .iso,不动 .sha256 / .torrent / 目录结构。 |
7 | - 支持 --dry-run 仅打印计划删除项。 |
8 | - 版本比较使用语义数字比较:x.y.z -> (x,y,z),保证 1.3.10 > 1.3.4。 |
9 | """ |
Новее
Позже