I need to check if given string could be a valid path. For example /home/mark/demo.txt
, this path do not exists but it is a valid path for creating file. How can i check that? I tried pathlib
module but it is just check if path is exist.
Asked
Active
Viewed 19 times