Permalink
Browse files

Pass full file path to ensure_dir

  • Loading branch information...
1 parent 4b7c6c1 commit 6cb6b57e018d567b865e1f56cd058f218ab1680b @dreverri dreverri committed Nov 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 demo/src/webmachine_demo_fs_resource.erl
View
2 demo/src/webmachine_demo_fs_resource.erl
@@ -91,7 +91,7 @@ content_types_accepted(ReqData, Context) ->
accept_content(ReqData, Context) ->
Path = wrq:disp_path(ReqData),
FP = file_path(Context, Path),
- ok = filelib:ensure_dir(filename:dirname(FP)),
+ ok = filelib:ensure_dir(FP),
ReqData1 = case file_exists(Context, Path) of
{true, _} ->
ReqData;

0 comments on commit 6cb6b57

Please sign in to comment.