Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exists Check on Glob (*) Directory Pattern #249

Open
Tracked by #250
sdford opened this issue Aug 6, 2024 · 1 comment
Open
Tracked by #250

Exists Check on Glob (*) Directory Pattern #249

sdford opened this issue Aug 6, 2024 · 1 comment

Comments

@sdford
Copy link

sdford commented Aug 6, 2024

Hi @loeffel-io, I am testing out the exists feature in 2.3.0-beta.1 (Darwin arm64). I want to make sure there exists a directory bar/ under every subdirectory in foo/.

The following passes the linter successfully, where instead I would expect an error.

.ls-lint.yml:

---
ls:
  foo/*/bar:
    .dir: exists

Filesystem (foo/example/bar does not exist):

foo/
foo/example/
foo/example/baz/

The following returns an error (as expected):

.ls-lint.yml:

---
ls:
  foo/example/bar:
    .dir: exists

output:

foo/example/bar failed for `.dir` rules: exists:1-32767 (debug: 0)
@loeffel-io
Copy link
Owner

thank you for the report @sdford ❤️

I will check this

@loeffel-io loeffel-io mentioned this issue Aug 7, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants