We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ffd3d commit 9808d13Copy full SHA for 9808d13
lib_eio_windows/low_level.ml
@@ -140,7 +140,9 @@ let read_link ?dirfd path =
140
141
let chown ?dirfd ~follow:_ ~uid ~gid path =
142
in_worker_thread @@ fun () ->
143
- Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path
+ match dirfd with
144
+ | None -> failwith "Chown is unsupported on Windows"
145
+ | Some dirfd -> Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path
146
147
external eio_readv : Unix.file_descr -> Cstruct.t array -> int = "caml_eio_windows_readv"
148
0 commit comments