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 1ad0d10 commit 34a4d5dCopy full SHA for 34a4d5d
test/ojo_tests.ml
@@ -2,6 +2,7 @@ open Ojo_lib
2
3
let () =
4
Test_rainbow.print_all_colors ();
5
+ Test_watcher.test_tree ();
6
Test_utils.test_vec ();
7
8
Rainbow.print Green "\n[Test] - All tests passed"
test/test_watcher.ml
@@ -0,0 +1,8 @@
1
+open Ojo_lib
+open Ojo_lib.Utils
+
+let test_tree () =
+ let dir = Watcher.Dir.make ~max_depth:1 "/home/aq" in
+ dir.files
+ |> Vector.iter (fun e -> Printf.printf " %s\n" (Watcher.File.get_path e))
+(* Watcher.tree "/home/aq" |> Array.iter (Printf.printf "\t%s\n") *)
0 commit comments