File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,8 @@ struct
211211 | Sys_error s ->
212212 (s = (p complete_path) ^ " : Permission denied" ) ||
213213 (s = (p complete_path) ^ " : File exists" && mem_model fs complete_path) ||
214- (s = (p complete_path) ^ " : No such file or directory" && not (mem_model fs path)) ||
214+ ((s = (p complete_path) ^ " : No such file or directory"
215+ || s = (p complete_path) ^ " : Invalid argument" ) && not (mem_model fs path)) ||
215216 if Sys. win32 && not (path_is_a_dir fs complete_path)
216217 then s = (p complete_path) ^ " : No such file or directory"
217218 else s = (p complete_path) ^ " : Not a directory"
@@ -223,6 +224,7 @@ struct
223224 | Error err ->
224225 (match err with
225226 | Sys_error s ->
227+ (s = (p complete_path) ^ " : Permission denied" ) ||
226228 (s = (p complete_path) ^ " : Directory not empty" && not (readdir_model fs complete_path = Some [] )) ||
227229 (s = (p complete_path) ^ " : No such file or directory" && not (mem_model fs complete_path)) ||
228230 if Sys. win32 && not (path_is_a_dir fs complete_path) (* if not a directory *)
You can’t perform that action at this time.
0 commit comments