File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -331,12 +331,12 @@ struct
331
331
(s = " No such file or directory" && Sys. win32 && old_path = new_path && path_is_an_empty_dir fs new_path) ||
332
332
(s = " No such file or directory" &&
333
333
not (Model. mem fs old_path) || List. exists (fun pref -> not (path_is_a_dir fs pref)) (path_prefixes new_path)) ||
334
- (s = " Invalid argument" && is_true_prefix old_path new_path) ||
334
+ (( s = " Invalid argument" || s = " Permission denied " (* Win32 *) ) && is_true_prefix old_path new_path) ||
335
335
(s = " Not a directory" &&
336
336
List. exists (path_is_a_file fs) (path_prefixes old_path) ||
337
337
List. exists (path_is_a_file fs) (path_prefixes new_path) ||
338
338
path_is_a_dir fs old_path && Model. mem fs new_path && not (path_is_a_dir fs new_path)) ||
339
- ((s = " Is a directory" || s = " Permission denied" ) && path_is_a_dir fs new_path) ||
339
+ ((s = " Is a directory" || s = " Permission denied" (* Win32 *) ) && path_is_a_dir fs new_path) ||
340
340
(s = " Directory not empty" &&
341
341
is_true_prefix new_path old_path || (path_is_a_dir fs new_path && not (path_is_an_empty_dir fs new_path)))
342
342
| Error _ -> false )
You can’t perform that action at this time.
0 commit comments