appsnbcbweicheng 1.1.4 → 1.1.6
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.
- package/package.json +1 -1
- package/public/show.txt +41 -0
- package/readme.md +19 -0
- package/public/VSCodeUserSetup-x64-1.92.2.exe +0 -0
package/package.json
CHANGED
package/public/show.txt
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
function Show-Tree {
|
|
2
|
+
param (
|
|
3
|
+
[string]$Path = ".",
|
|
4
|
+
[int]$Depth = 1
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
function Write-Tree {
|
|
8
|
+
param (
|
|
9
|
+
[System.IO.FileSystemInfo[]]$items,
|
|
10
|
+
[string]$prefix = "",
|
|
11
|
+
[bool]$isLastParent = $false
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
for ($i = 0; $i -lt $items.Count; $i++) {
|
|
15
|
+
$item = $items[$i]
|
|
16
|
+
$isLastItem = ($i -eq $items.Count - 1)
|
|
17
|
+
|
|
18
|
+
# 根据层级输出前缀符号
|
|
19
|
+
$currentPrefix = if ($isLastParent) { "$prefix " } else { "$prefix│ " }
|
|
20
|
+
|
|
21
|
+
# 设置不同颜色:文件和文件夹
|
|
22
|
+
if ($item.PSIsContainer) {
|
|
23
|
+
Write-Host "$prefix├──" -NoNewline; Write-Host " $($item.Name)" -ForegroundColor Cyan
|
|
24
|
+
} else {
|
|
25
|
+
Write-Host "$prefix├──" -NoNewline; Write-Host " $($item.Name)" -ForegroundColor Green
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
# 如果是目录且需要递归调用
|
|
29
|
+
if ($item.PSIsContainer -and $Depth -gt 1) {
|
|
30
|
+
Write-Tree (Get-ChildItem -Path $item.FullName) $currentPrefix $isLastItem
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
# 获取初始层的项目并开始递归输出
|
|
36
|
+
$items = Get-ChildItem -Path $Path
|
|
37
|
+
Write-Tree -items $items
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
# 执行函数,查看结果
|
|
41
|
+
Show-Tree -Path . -Depth 2
|
package/readme.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
1.1.6 show-tree
|
|
2
|
+
1.1.5 readme
|
|
3
|
+
1.1.4 vscode 1.92.2
|
|
4
|
+
1.1.3 vscode 插件
|
|
5
|
+
1.1.2
|
|
6
|
+
1.1.1
|
|
7
|
+
1.0.11 ecoPaste
|
|
8
|
+
1.0.10 ecoPaste
|
|
9
|
+
1.0.9 PowerToysUserSetup-0.83.0-x64.7z.003
|
|
10
|
+
1.0.8 PowerToysUserSetup-0.83.0-x64.7z.002
|
|
11
|
+
1.0.7 PowerToysUserSetup-0.83.0-x64.7z.001
|
|
12
|
+
1.0.6 Wox-Full-Installer.1.4.1196.7z
|
|
13
|
+
1.0.5 utoolsnpm1.rar
|
|
14
|
+
1.0.4 utoolsnpm.rar
|
|
15
|
+
1.0.3 launch.json
|
|
16
|
+
1.0.2 node-v14.16.0-x64.7z
|
|
17
|
+
1.0.1 TabNine.tabnine-vscode-3.139.0.7z
|
|
18
|
+
1.0.0 XMind2021_v11.1.1.7z
|
|
19
|
+
|
|
Binary file
|