How to prevent creation of AFP_AfpInfo files on SMB Share

Hi!

We've recently upgraded a few Mac workstations from Mac OS X Snow Leopard (10.6.8) to Yosemite (10.10.2) to accommodate using Adobe Creative Cloud 2014.  The server that the operators work from is running Mac OS X Snow Leopard Server (10.6.8).  The Yosemite users complain that directory updates take forever when the server volume is mounted via AFP.  When the volume is mounted via SMB, directory updates are instantaneous but when they write files from the Adobe apps it creates additional files with ":AFP_AfpInfo" appended to the filename.  Navigating through these files to find the actual work file is cumbersome.  Deleting these additional files does not impact the actual working file in anyway.

Is there a way I can either speed up Finder when the volume is mounted AFP?  Or, is there a way I can prevent the creation of these extra alternative stream files?

Users running Snow Leopard have no problems.

Thanks!
SithTrainerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Eoin OSullivanConsultantCommented:
As far as I am aware there is NO way to stop these files being created .. although you could open a ticket with Adobe (I'd not be holding my breath for a solution).

The AFP file is a resource file designed to store and support the extra information that Apple includes in its own filesystem like tags, colours, attributes etc. which SMB doesn't support.

On OSX I use a program called BlueHarvest which stops the creation of similar OSX resource files when working with Windows Servers but I've never seen a tool for your OSX fileserver.

I'd recommend the following .. a small perl script that you setup on the OSX fileserver .. which deletes all files with AFP_AFPinfo in the filename .. and have a cron job to run it every five minutes or more often.

A quick search online found this perl script which you can tailor to your own needs.
#!/usr/bin/perl -w

use File::Find;

sub process_file {
$name = $File::Find::name;

if ( ($name =~ /AFP_AfpInfo/) ) {
print "Deleting: $File::Find::name\n";
# unlink ("$name");
}
}

@ARGV = ('.') unless @ARGV;

find (\&process_file, @ARGV);

Open in new window

This script accepts one or more directories as arguments and you can safely run it in its current form to test as the delete command is commented out .. once you're happy that it is showing all the files you'd like to delete .. you remove the # from the UNLINK line in the script and it will actually delete the files when it is run.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SithTrainerAuthor Commented:
I was hoping there was a "default write <com.apple.<somestupidfilename>" solution.  Just got off the phone with Apple Technical Support - the issue was escalated.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.