def rename(self, old, new):
# TODO: proper rename support - this may not happen because there's not
# much reason to rename files here. copying might work since either
# way, the file[s] would have to be re-encrypted.
raise FuseOSError(errno.EROFS if self.readonly else errno.EPERM)
# if self.readonly:
# raise FuseOSError(errno.EROFS)
# return os.rename(old, self.root + new)
评论列表
文章目录