Should this validate it's actually passed a directory path, not a file?