How to prevent creation of AFP_AfpInfo files on SMB Share


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.

Who is Participating?
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.
SithTrainerAuthor Commented:
I was hoping there was a "default write <<somestupidfilename>" solution.  Just got off the phone with Apple Technical Support - the issue was escalated.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.