0

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.

xKralTr
  • 101
  • 9

0 Answers0