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.
Strangely the trailing slash is only appended to
$rootDir
if one provides anexport-path
option. This results in double-slashes in$outputPath
, which in turn results inis_dir($outputPath)
returningfalse
, even if the directory actually exists andmkdir
failing, because of undetected existing directory.