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)
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)