This function checks the specified path and ensures it is of a valid structure and syntax.
IsValidPath([Path])
Where:
Path is the path to check
Rule | Meaning |
---|---|
IsValidPath("\hello\world\directory\file.txt") | This function validates the path "\hello\world\directory\file.txt" and returns True as it is structurally and syntactically valid. |
Path | Outcome |
---|---|
"\hello\world\directory\file.txt" | True |
"\\servername\directory" | False |
"\hello\world\" | False |
"" | False |
"\dir:name\" | False |
"C:\dirname" | False |
"C:\dirname\file.txt" | True |