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

.DS_Store not ignored in Class::Dir #6129

Closed
plain-solutions-gmbh opened this issue Jan 9, 2024 · 1 comment
Closed

.DS_Store not ignored in Class::Dir #6129

plain-solutions-gmbh opened this issue Jan 9, 2024 · 1 comment

Comments

@plain-solutions-gmbh
Copy link
Contributor

I refer to this issue

Recommend to ignore Mac system files here:

$ignore = array_merge($ignore, ['.', '..']);

@afbora
Copy link
Member

afbora commented Jan 9, 2024

If you pass null to the second parameter ($ignore) instead [], it'll work well as expected:

Dir::read($formblockfolder, null, true);

https://github.com/getkirby/kirby/blob/4.0.2/src/Filesystem/Dir.php#L35-L45

@afbora afbora closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2024
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