(self)
return ino == parent_ino
Check if this path is a POSIX mount point
Check if this path is a POSIX mount point
Check if this path is a POSIX mount point
def is_mount(self):
        """
        Check if this path is a POSIX mount point
        """
        # Need to exist and be a dir
        if not self.exists() or not self.is_dir():
            return False

        try:
            parent_dev = self.parent.stat().st_dev
        except OSError:
            return False

        dev = self.stat().st_dev
        if dev != parent_dev:
            return True
        ino = self.stat().st_ino
        parent_ino = self.parent.stat().st_ino
        return ino == parent_ino
def is_mount ( self ) : # Need to exist and be a dir if not self . exists ( ) or not self . is_dir ( ) : return False try : parent_dev = self . parent . stat ( ) . st_dev except OSError : return False dev = self . stat ( ) . st_dev if dev != parent_dev : return True ino = self . stat ( ) . st_ino parent_ino = self . parent . stat ( ) . st_ino return ino == parent_ino