Skip to main content

ensure_data_dir_skeleton

Function ensure_data_dir_skeleton 

Source
pub fn ensure_data_dir_skeleton(path: &Path) -> Result<(), PortError>
Expand description

Creates the non-store part of a KMP data directory.

Fresh startup, migrate, and share-memory all call this function. The self-ignore file is deliberately installed even for an explicit path: an operator can put such a path inside a repository, and the store must not start appearing in git status merely because it arrived through a migration rather than first startup. Existing files are never replaced.