fixed an bug where the mothed inspectFolder would give an error message when the directory to inspect does not exist