from pathlib import Path
downloads_path = str(Path.home() / "Downloads")
More Related Contents:
- How can I safely create a nested directory?
- How do I list all files of a directory?
- How do I delete a file or folder in Python?
- Getting a list of all subdirectories in the current directory
- How do I get the full path of the current file’s directory?
- Directory-tree listing in Python
- Calculating a directory’s size using Python?
- How do I get the path of the current executed file in Python?
- How to reliably open a file in the same directory as the currently running script
- How can I find script’s directory? [duplicate]
- How to import a Python class that is in a directory above?
- How to config nltk data directory from code?
- How do I check if directory exists in Python?
- Reading the target of a .lnk file in Python?
- Renaming multiple files in a directory using Python
- Get folder name of the file in Python
- Python not recognising directories os.path.isdir() [duplicate]
- How can I delete a file or folder in Python?
- How can I safely create a directory (possibly including intermediate directories)?
- How PyCharm imports differently than system command prompt (Windows)
- Extract a part of the filepath (a directory) in Python
- How do I check if a directory exists in Python?
- Given a path, how can I extract just the containing folder name?
- Where are the python modules stored?
- very quickly getting total size of folder
- Determining Whether a Directory is Writeable
- Find all CSV files in a directory using Python
- Handling directories with spaces Python subprocess.call()
- How do I create a directory, and any missing parent directories?
- Deleting folders in python recursively