How can you use Test-Path (or any other function) to test if a folder exists - ignoring any trailing file names?
I need this to test if the target folder exists in or