diff options
| author | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-30 12:08:48 +0000 |
|---|---|---|
| committer | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-30 12:08:48 +0000 |
| commit | ee33293e9b9345e9f437390537f91b664ed81e88 (patch) | |
| tree | 96bfe8121962dc947392dad85bd6d47012bd7754 /lib/working_directory.ml | |
| parent | 9210f601dad3a0cb4ebcaf62e2d32d1cbfcc7502 (diff) | |
| download | nixtaml-ee33293e9b9345e9f437390537f91b664ed81e88.tar nixtaml-ee33293e9b9345e9f437390537f91b664ed81e88.tar.gz nixtaml-ee33293e9b9345e9f437390537f91b664ed81e88.tar.bz2 nixtaml-ee33293e9b9345e9f437390537f91b664ed81e88.tar.lz nixtaml-ee33293e9b9345e9f437390537f91b664ed81e88.tar.xz nixtaml-ee33293e9b9345e9f437390537f91b664ed81e88.tar.zst nixtaml-ee33293e9b9345e9f437390537f91b664ed81e88.zip | |
silo: make symlinks
Diffstat (limited to 'lib/working_directory.ml')
| -rw-r--r-- | lib/working_directory.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/working_directory.ml b/lib/working_directory.ml index 21aa0cd..19032e1 100644 --- a/lib/working_directory.ml +++ b/lib/working_directory.ml @@ -70,6 +70,11 @@ let set_up_silo () = | _ -> failwith @@ Fmt.str "There is a Nixtamal path, but is not a directory%a" pp_native_path dir +let make_silo_link ~name ~link_to = + let path = Eio.Path.(get () / silo_dir / name) in + Logs.info (fun m -> m "Filling silo with %s โฆ %a โฆ" name Eio.Path.pp path); + Eio.Path.symlink path ~link_to + let set_up_root () = let dir = get () in match Eio.Path.kind ~follow: true dir with |
