Push zpwxxpnpktps #67

Merged
coissac merged 46 commits from push-zpwxxpnpktps into main 2026-08-17 09:41:42 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit e2b9374426 - Show all commits
+1 -1
View File
@@ -225,7 +225,7 @@ pub fn run(args: IndexArgs) {
}
info
});
KmerIndex::create(&output, config, genome_info, false).unwrap_or_else(|e| {
KmerIndex::create(&output, config, genome_info, args.force).unwrap_or_else(|e| {
eprintln!("error creating index: {e}");
std::process::exit(1);
})
@@ -59,7 +59,11 @@ impl KmerPartition {
force: bool,
) -> SKResult<Self> {
let root_path = path.as_ref().to_owned();
if root_path.exists() {
// `root_path` itself may already exist as a bare directory: callers
// typically hold an index-level lock file there before creating the
// partition layout. What actually signals a pre-existing partition
// set is the `PARTITIONS_SUBDIR` subdirectory, not the root itself.
if root_path.join(PARTITIONS_SUBDIR).exists() {
if force {
remove_dir_all(&root_path)?;
} else {