add StripMacResourceForks(); hopefully prevents things like issue 178 ( http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=178 ) from happening again

This commit is contained in:
AJ Kelly
2010-08-26 00:49:40 -05:00
parent 705bf9b778
commit 20a1802758
8 changed files with 23 additions and 1 deletions
+10
View File
@@ -1189,6 +1189,16 @@ void StripCvsAndSvn( vector<RString> &vs )
RemoveIf( vs, CVSOrSVN );
}
static bool MacResourceFork( const RString& s )
{
return s.Left(2).EqualsNoCase("._");
}
void StripMacResourceForks( vector<RString> &vs )
{
RemoveIf( vs, MacResourceFork );
}
/* path is a .redir pathname. Read it and return the real one. */
RString DerefRedir( const RString &_path )
{