In the below example the path was broken symlink so it was neither a directory or file. An additional is_link check should be added and relevant exception thrown to assist debugging the environment.
[2016-12-09T09:44:27+00:00/21.4MB]
[2016-12-09T09:44:27+00:00/21.4MB] Error: Symfony\Component\Filesystem\Exception\IOException
[2016-12-09T09:44:27+00:00/21.4MB] Failed to create "/var/www/jadu/microsites/intranet/public_html/site/includes/structure": mkdir(): File exists.
[2016-12-09T09:44:27+00:00/21.4MB]
[2016-12-09T09:44:27+00:00/21.4MB] Exception trace:
[2016-12-09T09:44:27+00:00/21.4MB] () at phar:///root/package/meteor.phar/vendor/symfony/filesystem/Symfony/Component/Filesystem/Filesystem.php:97
[2016-12-09T09:44:27+00:00/21.4MB] Symfony\Component\Filesystem\Filesystem->mkdir() at phar:///root/package/meteor.phar/src/Filesystem/Filesystem.php:65
[2016-12-09T09:44:27+00:00/21.4MB] Meteor\Filesystem\Filesystem->ensureDirectoryExists() at phar:///root/package/meteor.phar/src/Filesystem/Filesystem.php:107
[2016-12-09T09:44:27+00:00/21.4MB] Meteor\Filesystem\Filesystem->copyFiles() at phar:///root/package/meteor.phar/src/Filesystem/Filesystem.php:78
In the below example the path was broken symlink so it was neither a directory or file. An additional
is_link
check should be added and relevant exception thrown to assist debugging the environment.