Tangling with filenames

filename join does not work as expected
This commit is contained in:
martinsumner 2016-11-03 20:46:56 +00:00
parent c3a6489b93
commit dd99d624b1

View file

@ -596,8 +596,8 @@ start_from_file(PCLopts) ->
levelzero_maxcachesize=MaxTableSize}, levelzero_maxcachesize=MaxTableSize},
%% Open manifest %% Open manifest
ManifestPath = filename:join(InitState#state.root_path, ?MANIFEST_FP), ManifestPath = InitState#state.root_path ++ ?MANIFEST_FP ++ "/",
filelib:ensure_dir(ManifestPath), ok = filelib:ensure_dir(ManifestPath),
{ok, Filenames} = file:list_dir(ManifestPath), {ok, Filenames} = file:list_dir(ManifestPath),
CurrRegex = "nonzero_(?<MSN>[0-9]+)\\." ++ ?CURRENT_FILEX, CurrRegex = "nonzero_(?<MSN>[0-9]+)\\." ++ ?CURRENT_FILEX,
ValidManSQNs = lists:foldl(fun(FN, Acc) -> ValidManSQNs = lists:foldl(fun(FN, Acc) ->