Skip to main content

Module fs

Module fs 

Source
Expand description

Filesystem helpers shared across KotOR crates. Filesystem helpers shared across KotOR crates.

This module provides deterministic case-insensitive file-name lookup utilities for cross-platform behavior.

Constants§

TEMP_SUFFIX
Suffix marking a file something in this workspace is part-way through writing.

Functions§

files_beneath
Every file beneath directory, at any depth, sorted by path.
files_have_same_bytes
Whether two files hold the same bytes.
find_case_insensitive_directories
Every subdirectory of directory matching expected_name ASCII case-insensitively.
find_case_insensitive_directory
Finds one subdirectory in directory with ASCII case-insensitive name matching.
find_case_insensitive_file
Finds one file in directory with ASCII case-insensitive name matching.
find_case_insensitive_files
Every file in directory whose name matches expected_file_name ASCII case-insensitively.