Does path represent a syntactically valid directory
path?
For many Systems, there may be no syntactical
difference between file paths and directory paths, in
that case there is no difference between
is_valid_directory_path and is_valid_path.
Does path only contain valid characters for a file?
The
result does not imply that there is actually a file or
directory with that name. Not the same as is_valid_path:
path separators (/ for unix, \ for windows, ...) are
allowed in paths, but not in file names. This operation
does not perform any disk access.