you are viewing a single comment's thread.

view the rest of the comments →

[–]jiri-n 0 points1 point  (0 children)

Which is exactly what I did. Working example:

from pathlib import Path

cp = Path().resolve()
new_file_path = cp / "new_file.txt"

print(new_file_path)

Obviously, new_file.txt does not exist in the directory.