コード例 #1
0
ファイル: gfapi.py プロジェクト: wisre/libgfapi-python
    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
ファイル: gfapi.py プロジェクト: bdrosen96/libgfapi-python
    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
ファイル: gfapi.py プロジェクト: msvbhat/libgfapi-python
 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
ファイル: gfapi.py プロジェクト: Zandrr/libgfapi-python
 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)