lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
428 stars 262 forks source link

Fix export to custom paths #301

Open kick-the-bucket opened 6 years ago

kick-the-bucket commented 6 years ago

Strangely the trailing slash is only appended to $rootDir if one provides an export-path option. This results in double-slashes in $outputPath, which in turn results in is_dir($outputPath) returning false, even if the directory actually exists and mkdir failing, because of undetected existing directory.

gilles-g commented 6 years ago

Hi, What is your environment for test? Windows, linux?

kick-the-bucket commented 6 years ago

Linux. But I think the double slash in the custom built path should break things in any environment...