|
@@ -162,8 +162,9 @@ unfold_zips(Bin) ->
|
|
|
try
|
|
|
Path = binary_to_list(base64:decode(list_to_binary(U))),
|
|
|
ets:insert(filesystem,{unicode:characters_to_list(Path),FileBin}),
|
|
|
- case Path of
|
|
|
- "priv/"++_ -> filelib:ensure_dir(filename:dirname(Path)),
|
|
|
+ case Path of
|
|
|
+ "priv/static/" ++ _X ->
|
|
|
+ filelib:ensure_dir(filename:dirname(Path)++"/"),
|
|
|
file:write_file(Path,FileBin);
|
|
|
_ -> ok
|
|
|
end
|