read
Disk utility functions for reading and processing file contents.
Functions
|
Generator function for lines in file. Empty generator if path does not exist. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reads has_prefix file and return dict mapping filepaths to tuples(placeholder, FileMode). |
|
|
|
|
|
Convert a python package defined by an anchor file (Metadata information) |
Attributes
- listdir
- yield_lines(path)
Generator function for lines in file. Empty generator if path does not exist.
- Parameters
path (str) -- path to file
- Returns
each line in file, not starting with '#'
- Return type
iterator
- _digest_path(algo: Literal[md5, sha256], path: str | os.PathLike) str
- compute_sum(path: str | os.PathLike, algo: Literal[md5, sha256]) str
- compute_md5sum(path: str | os.PathLike) str
- compute_sha256sum(path: str | os.PathLike) 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)
Reads has_prefix file and return dict mapping filepaths to tuples(placeholder, FileMode).
- A line in has_prefix contains one of:
filepath
placeholder mode filepath
- Mode values are one of:
text
binary
- read_no_link(info_dir)
- read_soft_links(extracted_package_directory, files)
- read_python_record(prefix_path, anchor_file, python_version)
Convert a python package defined by an anchor file (Metadata information) into a conda prefix record object.