OneupFlysystemBundle icon indicating copy to clipboard operation
OneupFlysystemBundle copied to clipboard

Automatically create folder for local adapter if not exist

Open ghost opened this issue 8 years ago • 2 comments

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

ghost avatar Nov 13 '16 14:11 ghost

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.

phpetra avatar Jan 17 '19 20:01 phpetra

Maybe due to changes in FlySystem?

bytehead avatar Jan 21 '19 07:01 bytehead