Does path only contain valid characters for a file?
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.