폴더가 비어있는 경우 Powershell 테스트 Powershell에서 디렉터리가 비어 있는지 어떻게 테스트합니까? 이 시도... $directoryInfo = Get-ChildItem C:\temp | Measure-Object $directoryInfo.count #Returns the count of all of the files in the directory 이면 $directoryInfo.count -eq 0디렉토리가 비어 있습니다. 숨겨진 파일이나 시스템 파일에 관심이 없다면 Test-Path를 사용할 수도 있습니다. 디렉토리에 파일이 있는지 확인하려면 .\temp다음을 사용할 수 있습니다. Test-Path -Path .\temp\* 또는 곧 : Test-Path .\temp\* c : \ ..