Skip to content

Commit

Permalink
max-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 9, 2024
1 parent 51998c0 commit aed36f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/babashka/fs_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@
(is (= 2 (count (fs/glob tmp-dir1 "foo/bar/baz/*.clj")))))))
(testing "return also directories"
(let [tmp-dir1 (temp-dir)
nested-dir (fs/file tmp-dir1 "foo" "bar" "baz")
nested-dir (fs/file tmp-dir1 "foo")
_ (fs/create-dirs nested-dir)]
(is (= 2 (count (map fs/directory? (fs/glob tmp-dir1 "**/{bar,baz}" {:recursive true}))))))))
(is (= 1 (count (map fs/directory? (fs/glob tmp-dir1 "*" {:max-depth 1}))))))))

(deftest create-dir-test
(is (fs/create-dir (fs/path (temp-dir) "foo"))))
Expand Down

0 comments on commit aed36f1

Please sign in to comment.