Skip to content

Commit

Permalink
bs
Browse files Browse the repository at this point in the history
  • Loading branch information
last-genius committed Nov 14, 2024
1 parent 680ccc8 commit 339f065
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions oxenstored/dune
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
(modules configure)
(name configure))

(executable
(modes exe)
(name xenstorels)
(modules xenstorels)
(libraries
ezxenstore
ezxenstore.core
xenstore
xenstore_transport.unix
)
)

(rule
(targets paths.ml)
(deps paths.ml.in configure.exe)
Expand Down
9 changes: 9 additions & 0 deletions oxenstored/xenstorels.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
open Ezxenstore_core.Xenstore

let readdir ~xs d = try xs.Xs.directory d with Xs_protocol.Enoent _ -> []

let _ =
with_xs (fun xs ->
Printf.printf "%s\n" (String.concat "; " (readdir ~xs Sys.argv.(1)))
)

0 comments on commit 339f065

Please sign in to comment.