Пример #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)
Пример #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)
Пример #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)
Пример #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)