Example #1
0
    def opendir(self, path):
        """
        Open a directory.

        :param path: Path to the directory
        :returns: Returns a instance of Dir class
        """
        fd = api.glfs_opendir(self.fs, path)
        if not fd:
            err = ctypes.get_errno()
            raise OSError(err, os.strerror(err))
        return Dir(fd)
Example #2
0
    def opendir(self, path):
        """
        Open a directory.

        :param path: Path to the directory
        :returns: Returns a instance of Dir class
        """
        fd = api.glfs_opendir(self.fs, path)
        if not fd:
            err = ctypes.get_errno()
            raise OSError(err, os.strerror(err))
        return Dir(fd)
Example #3
0
 def opendir(self, path):
     fd = api.glfs_opendir(self.fs, path)
     if not fd:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return Dir(fd)
Example #4
0
 def opendir(self, path):
     fd = api.glfs_opendir(self.fs, path)
     if not fd:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return Dir(fd)