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

Add support for remote filesystems #141

Open
shanept opened this issue Jan 18, 2017 · 1 comment
Open

Add support for remote filesystems #141

shanept opened this issue Jan 18, 2017 · 1 comment
Assignees

Comments

@shanept
Copy link

shanept commented Jan 18, 2017

When registering the stream, there is a third $flags parameter in which you may specify that a filesystem is 'remote'. It would be very useful in testing codebases implemented for accessing remote filesystems as streams, for example an FTP stream.

@shanept
Copy link
Author

shanept commented Feb 20, 2017

If it is any help to you...
I am currently working around this in my test code as follows:

$vfs = vfsStream::setup('root');

stream_wrapper_unregister(vfsStream::SCHEME);
stream_wrapper_register(vfsStream::SCHEME, vfsStreamWrapper::class, STREAM_IS_URL);

It's not pretty, but it does what I need.

@bizurkur bizurkur self-assigned this Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants