Skip to content

Commit

Permalink
[fix] libnet: removed the creation of .mlstate at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Ye committed Feb 3, 2012
1 parent f50d597 commit c8d0ae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libnet/ftpServer.ml
Expand Up @@ -82,7 +82,7 @@ type options =
opt_name: string; opt_name: string;
} }


let initDir = Filename.concat (Lazy.force File.mlstate_dir) "ftp" let initDir = "./ftp" (* Filename.concat (Lazy.force File.mlstate_dir) "ftp" *)
let folder = Folder.empty initDir let folder = Folder.empty initDir


let default_options = let default_options =
Expand Down
2 changes: 1 addition & 1 deletion libnet/httpServer.ml
Expand Up @@ -132,7 +132,7 @@ let m2 =
(fun () -> (fun () ->
let mime_types_file_content = let mime_types_file_content =
try try
let res = File.content ((Lazy.force File.mlstate_dir)^"/.mime.types") in let res = "./mime.types" (* File.content ((Lazy.force File.mlstate_dir)^"/.mime.types") *)in
Logger.info "Loaded .mime.types file"; Logger.info "Loaded .mime.types file";
res res
with Unix.Unix_error _ -> "" in with Unix.Unix_error _ -> "" in
Expand Down

0 comments on commit c8d0ae8

Please sign in to comment.