LexikTranslationBundle icon indicating copy to clipboard operation
LexikTranslationBundle copied to clipboard

Fix export to custom paths

Open kick-the-bucket opened this issue 8 years ago • 2 comments

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.

kick-the-bucket avatar Jan 03 '18 14:01 kick-the-bucket

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

gilles-g avatar Feb 19 '18 07:02 gilles-g

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

kick-the-bucket avatar Feb 19 '18 08:02 kick-the-bucket