Store.Project.FilesDirMigration (fnord v0.8.88)

View Source

Migrates legacy entry directories into the new files/ layout.

Moves or merges each entry directory under the project store path into an entry-specific directory under files_root. Preserves existing files in target directories, merges missing files, and removes legacy directories.

Ignores root-level "files" and "conversations" directories.

Summary

Functions

ensure_files_dir_layout(project)

@spec ensure_files_dir_layout(Store.Project.t()) :: :ok

migrate(store_path, files_root)