Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pmcfernandes
Created May 28, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmcfernandes/edd0bc599a52122419c7143ed01276d5 to your computer and use it in GitHub Desktop.
Save pmcfernandes/edd0bc599a52122419c7143ed01276d5 to your computer and use it in GitHub Desktop.
Delete all empty files from a directory recursively (Normally files cleaned by ESET File Security)
Get-ChildItem -Path C:\HostingSpaces -Recurse -Include *.php | Where {$_.Length -eq 0} | remove-Item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment