read#
用于读取和处理文件内容的磁盘实用程序函数。
函数#
|
用于文件中行的生成器函数。如果路径不存在,则为空生成器。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
读取 has_prefix 文件并返回将文件路径映射到元组(占位符,FileMode)的字典。 |
|
|
|
|
|
将由锚文件(元数据信息)定义的 python 包转换为 conda 前缀记录对象。 |
属性#
- listdir#
- yield_lines(path)#
用于文件中行的生成器函数。如果路径不存在,则为空生成器。
- 参数:
path (str) -- 文件路径
- 返回值:
文件中的每一行,不以 '#' 开头
- 返回类型:
迭代器
- compute_sum(path: str | os.PathLike, algo: Literal[md5, sha256]) str#
- read_package_info(record, package_cache_record)#
- read_index_json(extracted_package_directory)#
- read_index_json_from_tarball(package_tarball_full_path)#
- read_repodata_json(extracted_package_directory)#
- read_icondata(extracted_package_directory)#
- read_package_metadata(extracted_package_directory)#
- read_paths_json(extracted_package_directory)#
- read_has_prefix(path)#
读取 has_prefix 文件并返回将文件路径映射到元组(占位符,FileMode)的字典。
- has_prefix 中的一行包含以下内容之一
文件路径
占位符 模式 文件路径
- 模式值是以下之一
文本
二进制
- read_no_link(info_dir)#
- read_soft_links(extracted_package_directory, files)#
- read_python_record(prefix_path, anchor_file, python_version)#
将由锚文件(元数据信息)定义的 python 包转换为 conda 前缀记录对象。