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

Register a stream wrapper for each registered filesystem #96

Open
dkarlovi opened this issue Apr 27, 2022 · 1 comment
Open

Register a stream wrapper for each registered filesystem #96

dkarlovi opened this issue Apr 27, 2022 · 1 comment

Comments

@dkarlovi
Copy link

dkarlovi commented Apr 27, 2022

For example

flysystem:
    storages:
        default.storage:
            adapter: 'local'
            options:
                directory: '%kernel.project_dir%/var/storage/default'

flysystem+default.storage://foo/bar/bat.csv points to %kernel.project_dir%/var/storage/default/foo/bar/bar/csv.

Similar to https://github.com/twistor/flysystem-stream-wrapper, but up to date.

This wrapper works with recent Flysystem: https://github.com/m2mtech/flysystem-stream-wrapper

Thinking about it further, it seems like a thing which could be opted-in per filesystem, something like

flysystem:
    storages:
        some.storage:
            adapter: 'asyncaws'
            stream_wrapper: true
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

2 participants