Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony ignore AppleDouble

Tags:

php

symfony

I have a development server where I log in to (through ssh). Apple automatically creates the AppleDouble files/directories, which doesn't work well with Symfony. Every time I want to use a command (mostly doctrine:schema:update). I get AppleDouble errors about classes that don't exist.

Is there any way to tell Symfony to ignore those AppleDouble files?

I saw this issue on GitHub, but it's closed in favor of other issues, but I don't really know how to implement it. (https://github.com/symfony/symfony/issues/5877)

like image 637
Angelo A Avatar asked Aug 05 '15 10:08

Angelo A


2 Answers

Try to disable this in OSX itself:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Found on this thread.

like image 153
Valentas Avatar answered Nov 12 '22 03:11

Valentas


The folder is created not by Apple but by NAS which you are using probably. Look at this FAQ

So if you use Netatalk you should probably look at its docs. Same folders are created by RedyNAS. But the common pattern as I understood is to run command from terminal that @Valentas described. And then remove the folders recursively.

If you have to hold folders and make Symfony work you should modify the value of Finder::vcsPatterns. As the property is static you can add the following code to the app/console (or bin/console):

...
Finder::addVCSPattern('.AppleDouble');
$kernel = new AppKernel($env, $debug);
...
like image 2
origaminal Avatar answered Nov 12 '22 03:11

origaminal