DirCachedValueMetadata 类
用于保存缓存存储中存储的目录的元数据的类。
- 继承
-
DirCachedValueMetadata
构造函数
DirCachedValueMetadata(key: str, local_path: str, remote_path: str = '', **kwargs: Any)
参数
- key
- local_path
- remote_path
方法
| update_local_path |
在 load() 后更新 dir 项的本地路径。 |
| update_remote_path |
根据提供的参数设置上传路径。 |
update_local_path
在 load() 后更新 dir 项的本地路径。
update_local_path(key: str, parent_local_path: str) -> None
参数
- key
必需
cached_items 中项的键
- parent_local_path
必需
父项的本地路径。
update_remote_path
根据提供的参数设置上传路径。
update_remote_path(key: str, parent_remote_path: str) -> None
参数
- key
必需
缓存存储中项的键。
- parent_remote_path
必需
父目录的远程路径。
反馈
提交和查看相关反馈