Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Python Programs
4.0K+ articles
python-os-module
224+ articles
python-file-handling
124+ articles
Python file-handling-programs
82+ articles
Volkswagen IT Services
61+ articles
Python os-module-programs
28+ articles
Python directory-program
26+ articles
Python OS-path-module
32 posts
Recent Articles
Popular Articles
Python List All Files In Directory And Subdirectories
Last Updated: 24 April 2025
Listing all files in a directory and its subdirectories is a common task in Python, often encountered in file management, data processing, or system administration. As dev...
read more
Python
Picked
Python OS-path-module
Geeks Premier League
Geeks Premier League 2023
How to get file extension in Python?
Last Updated: 19 September 2023
In this article, we will cover How to extract file extensions using Python. How to Get File Extension in Python? Get File Extension in Python we can use either of the two ...
read more
Python
python-file-handling
Python OS-path-module
Python file-handling-programs
os.path.abspath() method - Python
Last Updated: 21 April 2025
The os.path.abspath() method in Python's os module is used to get the full (absolute) path of a file or folder. It's useful when you're working with relative paths but nee...
read more
Python
Python Programs
Python OS-path-module
Python directory-program
Get parent of current directory using Python
Last Updated: 13 October 2022
In Python, OS module is used to interact with the operating system. It comes under Python's standard utility modules. This module provides a portable way of using operatin...
read more
Python
python-file-handling
Python OS-path-module
Python file-handling-programs
Python os-module-programs
Check if a File or Directory Exists in Python
Last Updated: 04 January 2025
To check how to check if a Directory Exists without exceptions in Pythonwe have the following ways to check whether a file or directory already exists or not.Table of Cont...
read more
Python
python-file-handling
Python OS-path-module
Python file-handling-programs
Delete a directory or file using Python
Last Updated: 26 November 2024
In this article, we will cover how to delete (remove) files and directories in Python. Python provides different methods and functions for removing files and directories. ...
read more
Python
Python Programs
python-file-handling
Python OS-path-module
Python file-handling-programs
Python - How to Check if a file or directory exists
Last Updated: 24 April 2024
Sometimes it's necessary to verify whether a dictionary or file exists. This is because you might want to make sure the file is available before loading it, or you might w...
read more
Python
python-file-handling
Python OS-path-module
Python file-handling-programs
os.path.isdir() method - Python
Last Updated: 28 April 2025
os.path.isdir() method in Python checks whether the specified path is a directory or not. This method follows the symbolic link, which means if the specified path is a sym...
read more
Python
python-os-module
Python OS-path-module
Python | os.path.isabs() method
Last Updated: 26 August 2019
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of ...
read more
Python
python-os-module
Python OS-path-module
Python | os.path.dirname() method
Last Updated: 26 August 2019
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of ...
read more
Python
python-os-module
Python OS-path-module
Python | os.path.basename() method
Last Updated: 21 August 2024
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of ...
read more
Python
python-os-module
Python OS-path-module
Python | os.path.normcase() method
Last Updated: 09 March 2022
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of ...
read more
Python
python-os-module
Python OS-path-module
Python | os.path.normpath() method
Last Updated: 16 September 2021
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of ...
read more
Python
python-os-module
Python OS-path-module
Python | os.path.expanduser() method
Last Updated: 11 October 2021
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of ...
read more
Python
python-os-module
Python OS-path-module
Python | os.path.relpath() method
Last Updated: 18 June 2019
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of ...
read more
Python
python-os-module
Python OS-path-module
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !