rm bos
This commit is contained in:
parent
a6d2b59da1
commit
e849c418e9
3 changed files with 45 additions and 47 deletions
|
|
@ -113,11 +113,9 @@ let delete_file fs fpath =
|
|||
()
|
||||
|
||||
let get_key_dir_contents fs dir_fpath =
|
||||
let* b = Bos.OS.Dir.create ~mode:0o700 dir_fpath |> unwrap_msg in
|
||||
let* b = Fat.mkdir fs dir_fpath |> unwrap_msg in
|
||||
if b then Log.info (fun m -> m "created directory `%a`" Fpath.pp dir_fpath);
|
||||
let+ l =
|
||||
Bos.OS.Dir.contents ~dotfiles:false ~rel:false dir_fpath |> unwrap_msg
|
||||
in
|
||||
let+ l = Fat.ls fs dir_fpath |> unwrap_msg in
|
||||
List.map Fpath.normalize l
|
||||
|
||||
(* -- *)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue