Skip to main content Module utils Copy item path Source Progress Monomorphic progress handle used by repo-wide operations. atomic_write Atomically write data to path by writing to a temp file first, then
renaming. This prevents partial writes from corrupting the target file. format_hex Format a byte array into a hex string is_file_encrypted Check whether a single file has a valid GITSE encrypted header.
Returns an error if the file cannot be read (IO error). list_files If the given path is a file, return the file name. Otherwise, return the
recursive file name in the given dir. print_post_report Print a post-operation summary report. print_pre_report Print a pre-operation report listing the target files and total count.
If the list exceeds REPORT_LIST_LIMIT, show the first few and summarize
the rest as “… and N more files”. prompt_password Prompt the user for a password. resolve_target_files Resolve the target file list for the repo. If paths is empty, use the
crypt list from the config; otherwise, use the given paths.