Answers for "python file parent"

0

python file parent

from pathlib import Path
path = Path("/here/your/path/file.txt")
print(path.parent.absolute())
Posted by: Guest on August-21-2021
0

python file parent

from pathlib import Path
path = Path("/here/your/path/file.txt")
print(path.parent.absolute())
Posted by: Guest on August-21-2021

Code answers related to "python file parent"

Python Answers by Framework

Browse Popular Code Answers by Language