예제 #1
0
 def lstat(self, path):
     s = api.Stat()
     rc = api.glfs_lstat(self.fs, path, ctypes.byref(s))
     if rc < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return s
예제 #2
0
 def lstat(self, path):
     s = api.Stat()
     rc = api.glfs_lstat(self.fs, path, ctypes.byref(s))
     if rc < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return s
예제 #3
0
 def lstat(self, path):
     """
     Return stat information of path. If path is a symbolic link, then it
     returns information about the link itself, not the file that it refers
     to.
     """
     s = api.Stat()
     rc = api.glfs_lstat(self.fs, path, ctypes.byref(s))
     if rc < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return s
예제 #4
0
 def lstat(self, path):
     """
     Return stat information of path. If path is a symbolic link, then it
     returns information about the link itself, not the file that it refers
     to.
     """
     s = api.Stat()
     rc = api.glfs_lstat(self.fs, path, ctypes.byref(s))
     if rc < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return s