Skip to content

Commit

Permalink
Update otherlibs/stdune/src/fpath.ml
Browse files Browse the repository at this point in the history
Co-authored-by: Marek Kubica <marek@xivilization.net>
Signed-off-by: Jules Aguillon <jules@j3s.fr>
  • Loading branch information
Julow and Leonidas-from-XIV authored Feb 21, 2025
1 parent fb66f67 commit 701f78b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions otherlibs/stdune/src/fpath.ml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ let traverse_files ~dir ~init ~f =
;;

let is_rw p =
try
Unix.access p Unix.[ R_OK; W_OK ];
true
with
| Unix.Unix_error _ -> false
match Unix.access p Unix.[ R_OK; W_OK ] with
| () -> true
| exception Unix.Unix_error _ -> false
;;

0 comments on commit 701f78b

Please # to comment.