Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Automatically create folder for local adapter if not exist #116

Open
ghost opened this issue Nov 13, 2016 · 2 comments
Open

Automatically create folder for local adapter if not exist #116

ghost opened this issue Nov 13, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 13, 2016

For the local adapter you need to set a directory - of course.

But it might be helpful to have a create: false / create: true feature on the local adapter in the configuration file. The same feature exists on Gaufrette.

Example Gaufrette:

knp_gaufrette:
    adapters:
        example:
            local:
                directory: %storage_dir%/example/example2/
                create: true
@phpetra
Copy link

phpetra commented Jan 17, 2019

Has this behaviour perhaps changed in recent releases? I see my post-deploy scripts failing all of a sudden because FlySystem tries to create a directory that already exists.

@bytehead
Copy link
Member

Maybe due to changes in FlySystem?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants