From 6579c26f98acee1ee7f9237aa4adbbfa697d3698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 4 Jan 2012 00:56:20 +0100 Subject: [PATCH] egs_patch: Rename the folder containing the patch files --- .../DATA/1ffd0db3e0b54048caff394e9c09eda8 | Bin .../DATA/bb04cc8e1727288bd2a336d60040eff1 | Bin apps/egs_patch/src/egs_patch_files_db.erl | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename apps/egs_patch/priv/{patch => files}/DATA/1ffd0db3e0b54048caff394e9c09eda8 (100%) rename apps/egs_patch/priv/{patch => files}/DATA/bb04cc8e1727288bd2a336d60040eff1 (100%) diff --git a/apps/egs_patch/priv/patch/DATA/1ffd0db3e0b54048caff394e9c09eda8 b/apps/egs_patch/priv/files/DATA/1ffd0db3e0b54048caff394e9c09eda8 similarity index 100% rename from apps/egs_patch/priv/patch/DATA/1ffd0db3e0b54048caff394e9c09eda8 rename to apps/egs_patch/priv/files/DATA/1ffd0db3e0b54048caff394e9c09eda8 diff --git a/apps/egs_patch/priv/patch/DATA/bb04cc8e1727288bd2a336d60040eff1 b/apps/egs_patch/priv/files/DATA/bb04cc8e1727288bd2a336d60040eff1 similarity index 100% rename from apps/egs_patch/priv/patch/DATA/bb04cc8e1727288bd2a336d60040eff1 rename to apps/egs_patch/priv/files/DATA/bb04cc8e1727288bd2a336d60040eff1 diff --git a/apps/egs_patch/src/egs_patch_files_db.erl b/apps/egs_patch/src/egs_patch_files_db.erl index e479eff..ef539c0 100644 --- a/apps/egs_patch/src/egs_patch_files_db.erl +++ b/apps/egs_patch/src/egs_patch_files_db.erl @@ -111,7 +111,7 @@ build_state() -> PrivDir = code:priv_dir(App), {ok, Terms} = file:consult([PrivDir, "/patch.conf"]), Folders = proplists:get_value(folders, Terms), - {ListBin, Files} = build_list_bin(Folders, Terms, [PrivDir, "/patch/"]), + {ListBin, Files} = build_list_bin(Folders, Terms, [PrivDir, "/files/"]), #state{list_bin=ListBin, files=Files}. %% The file number must start at 0.