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

mkdir(recursive: true) behaves wrong for existing directories #282

Open
heinebold opened this issue Jan 12, 2023 · 0 comments
Open

mkdir(recursive: true) behaves wrong for existing directories #282

heinebold opened this issue Jan 12, 2023 · 0 comments

Comments

@heinebold
Copy link

Normally, when you mkdir('/this/already/exists', recursive: true) a path that already exists, php does not complain (although it does if you don't specify "recursive"). THis means that a recursive mkdir is a simple one-line way to ensure the directory exists, without having to wrap it in manual checks.

In vfsStream though, it will say "mkdir(): Path vfs://this/already/exists exists", which means you can't correctly test the behavior of something that relies on mkdir(recursive: true).

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

1 participant