python

python

Python program to get the current working directory

Python program to get the current working directory. We will learn how to get the current working directory in python with example.

Read
python

Python program to change the current working directory

Python program to change the current working directory. We will learn how to change the current working directory in Python for example.

Read
python

How to get the directory name of a given path in Python

In this tutorial, I will show you how to get the directory name of a given path in python with examples.

Read
python

Python program to get the absolute path of a file

Python program to get the absolute path of a file. os.path module provides abspath() method that can be used to find the absolute path of a file in python.

Read
python

How to find the common path in a list of paths in python

Python find the common path in a list of paths in python. Python os.path.commonpath method can be used to find the common path in a list of paths. This python example will show you how to use os.path.commonpath

Read
python

Python program to get the last modified time of a path

Python program to find the last modified time of a path. os.path.getmtime method can be used to find the last modified time for a given path. This program will use this method.

Read
python

Python program to get the last access time of a path

Python program to find the last access time of a path. os.path.getatime method can be used to find the last access time for a given path. This program will use this method.

Read
python

How to check if a path is file or directory in Python

Python program to check if a path is a file or a directory. The python program will take one path and check if it is a file path or directory path.

Read
python

Python os.path.lexists() method explanation with example

Python os.path sub-module provides one method called lexists() that can be used to check if a path exists or not. This post will show you how to use lexists with example.

Read
python

Python program to check if a path exists

Python program to check if a path exists or not. Python os.path sub-module provides different methods for path manipulation. We will learn how to use this module with example.

Read