小编Sha*_*t95的帖子

JWT 令牌中允许使用哪些字符?

我看到 JWT 令牌由 AZ,aZ,0-9 和特殊字符-_. 我想知道 JWT 令牌中允许的字符列表?

jwt

11
推荐指数
1
解决办法
5023
查看次数

PowerShell递归中的后置遍历

Powershell中的Get-ChildItem -Recurse当前以级别顺序方式遍历目录。有什么办法可以在Powershell中以后置方式遍历目录?

我正在尝试删除早于某些时间的文件。删除文件后,如果子文件夹为空,则也删除该文件夹。现在正在这样做。

$path = 'D:\Files'
Get-ChildItem -Path $path -Recurse | Where-Object {
(($_.LastWriteTime -lt (Get-Date).AddDays(-30)) -and ($_ -is [system.io.fileinfo]) )
} | Remove-Item 


Get-ChildItem -Path $path -Recurse | Where-Object {
($_ -is [System.IO.DirectoryInfo]) -and $_.CreationTime -lt (Get-Date).AddDays(-30) -and ((Get-ChildItem $_.FullName).Count -eq 0)
} | Remove-Item -Force
Run Code Online (Sandbox Code Playgroud)

但是我想用一个命令来做。不能作为两个不同的命令。

powershell

4
推荐指数
1
解决办法
69
查看次数

标签 统计

jwt ×1

powershell ×1