Last active
September 12, 2016 15:59
-
-
Save kokeiro001/d8fe7e33c40f59900644bfc0266f0d50 to your computer and use it in GitHub Desktop.
空のディレクトリを再帰的に見つけて削除
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
Dir -Recurse | ? { $_.PSIsContainer -And !$_.GetFiles().Count -And !$_.GetDirectories().Count} | %{ $_.FullName } | Remove-Item -Recurse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment