def fstat(self, file_obj):
"""Get attributes of an open file
:param file file_obj:
The file to get attributes for
:returns: An :class:`SFTPAttrs` or an os.stat_result containing
the file attributes
:raises: :exc:`SFTPError` to return an error to the client
"""
return self.lstat(file_obj.path)
评论列表
文章目录