From 13174d23c36dede6623a1bd92d0d3fc7dd7cbd1f Mon Sep 17 00:00:00 2001 From: rchikhi Date: Sun, 10 Dec 2017 01:01:11 +0100 Subject: [PATCH] fixed bug with storage-type file when dsk was re-run on an existing folder the mphf was deleted --- gatb-core/src/gatb/tools/storage/impl/StorageFile.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatb-core/src/gatb/tools/storage/impl/StorageFile.hpp b/gatb-core/src/gatb/tools/storage/impl/StorageFile.hpp index cd6155871..094c32f1a 100644 --- a/gatb-core/src/gatb/tools/storage/impl/StorageFile.hpp +++ b/gatb-core/src/gatb/tools/storage/impl/StorageFile.hpp @@ -221,7 +221,7 @@ class StorageFileFactory std::string filename = file_folder + parent->getFullId('.') + std::string(".") + name; std::string folder = system::impl::System::file().getDirectory(filename); - std::string prefix = system::impl::System::file().getBaseName(filename); + std::string prefix = system::impl::System::file().getBaseName(filename) + std::string(".") + name; // because gatb's getBaseName is stupid and cuts after the last dot if (nb == 0) { // if nb is 0, it means we're opening partitions and not creating them, thus we need to get the number of partitions.