···27272828```ocaml
2929(* Filesystem access is an explicit capability *)
3030-let xdg = Xdge.create env#fs "myapp"
3030+let xdg = Xdge.v env#fs "myapp"
3131```
32323333The capability model provides the benefit that code that needs filesystem
···41414242```ocaml
4343Eio_main.run @@ fun env ->
4444- let xdg = Xdge.create env#fs "myapp" in
4444+ let xdg = Xdge.v env#fs "myapp" in
45454646 (* Access XDG directories as Eio paths *)
4747 let config = Xdge.config_dir xdg in
4848 let data = Xdge.data_dir xdg in
49495050 (* Search for files following XDG precedence *)
5151- match Xdge.find_config_file xdg "settings.json" with
5151+ match Xdge.config_file xdg "settings.json" with
5252 | Some path -> (* use path *)
5353 | None -> (* use defaults *)
5454```