os.path.ismount() Syntax in Python

Syntax: os.path.ismount(path)

Parameter:

  • path: A path-like object representing a file system path. A path-like object is either a string or bytes object representing a path.

Return Type: This method returns a Boolean value of class bool. This method returns True if the given path is a mount point, otherwise returns False.

Python | os.path.ismount() method

os.path module is sub module of Python OS Module in Python used for common path name manipulation.

os.path.ismount() method in Python is used to check whether the given path is a mount point or not. A mount point is a point in a file system where a different file system has been mounted.

Similar Reads

os.path.ismount() Syntax in Python

Syntax: os.path.ismount(path) Parameter: path: A path-like object representing a file system path. A path-like object is either a string or bytes object representing a path. Return Type: This method returns a Boolean value of class bool. This method returns True if the given path is a mount point, otherwise returns False....

Python os.path.ismount() Method Example

Below, we are explaing the example of Python mount, those are following....

Contact Us