From 7a6999465af114dd65668f623a9443ca43631ba9 Mon Sep 17 00:00:00 2001 From: Mark Allen Date: Tue, 6 Oct 2015 22:02:31 -0500 Subject: [PATCH] Make sure we use '^' as filename separators --- src/machi_util.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machi_util.erl b/src/machi_util.erl index 271bbfc..4e2dba1 100644 --- a/src/machi_util.erl +++ b/src/machi_util.erl @@ -73,7 +73,7 @@ make_config_filename(DataDir, Prefix) -> -spec make_checksum_filename(string(), string(), atom()|string()|binary(), integer()) -> string(). make_checksum_filename(DataDir, Prefix, SequencerName, FileNum) -> - lists:flatten(io_lib:format("~s/config/~s.~s.~w.csum", + lists:flatten(io_lib:format("~s/config/~s^~s^~w.csum", [DataDir, Prefix, SequencerName, FileNum])). %% @doc Calculate a checksum file path, by common convention. @@ -90,7 +90,7 @@ make_checksum_filename(DataDir, FileName) -> -spec make_data_filename(string(), string(), atom()|string()|binary(), integer()) -> {binary(), string()}. make_data_filename(DataDir, Prefix, SequencerName, FileNum) -> - File = erlang:iolist_to_binary(io_lib:format("~s.~s.~w", + File = erlang:iolist_to_binary(io_lib:format("~s^~s^~w", [Prefix, SequencerName, FileNum])), FullPath = lists:flatten(io_lib:format("~s/data/~s", [DataDir, File])), {File, FullPath}.