Calling vfsStream::createDir() twice with same elements remove elements from calls before #39

Closed
mikey179 opened this Issue Aug 7, 2012 · 1 comment

Projects

None yet

1 participant

@mikey179
Owner
mikey179 commented Aug 7, 2012

Suppose the following:

vfsStream::newDir('www/foo')->at($root);
vfsStream::newDir('www/bar')->at($root);

The second call will create a new instance of www even if it already exists, and thus foo will be gone even though www still exists. The second call should not create a new instance of www but reuse the existing one.

@mikey179 mikey179 was assigned Aug 7, 2012
@mikey179
Owner
mikey179 commented Aug 7, 2012

Fixing this would require a major bc break. While this wouldn't be a reason not to do it, it would introduce another behaviour in other parts of vfsStream which is exactly the opposite of what a user would expect.

@mikey179 mikey179 closed this Aug 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment