Commits

UENISHI Kota  committed 499ce05

wrong permission: octet.

  • Participants
  • Parent commits 1e465ab

Comments (0)

Files changed (1)

 	save_binary file_descriptor (start+len) (remain-len) data
   in
   let fd =
-    Unix.mkdir ("data/"^id) 755;
-    Unix.openfile (Printf.sprintf "data/%s/%s" id (Filename.basename url)) [Unix.O_WRONLY] 644 
+    Unix.mkdir ("data/"^id) 0o755;
+    Unix.openfile (Printf.sprintf "data/%s/%s" id (Filename.basename url)) [Unix.O_WRONLY] 0o644 
   in
   let bin = http_get url in
     save_binary fd 0 (String.length bin) bin;