Skip to content

Instantly share code, notes, and snippets.

@mallibone
Created June 7, 2017 06:38
Show Gist options
  • Save mallibone/9f1fdd41b8df92a480ca57cf6355ea55 to your computer and use it in GitHub Desktop.
Save mallibone/9f1fdd41b8df92a480ca57cf6355ea55 to your computer and use it in GitHub Desktop.
function HasEntryInDirectory($filename, $path) {
$entries = Get-ChildItem -Path $path
$entries -contains $filename
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment