strip the same files when archiving and extracting

This commit is contained in:
Chris Danford
2006-02-01 04:48:21 +00:00
parent 5467ab21ed
commit 4c5340c6c4
4 changed files with 29 additions and 12 deletions
@@ -133,6 +133,7 @@ static bool ExportPackage( const RString &sPackageName, const RString &sSourceIn
if( sDir.Right(1) != "/" )
sDir += "/";
GetDirListingRecursive( &fileDriver, sDir, "*", asFilePaths );
SMPackageUtil::StripIgnoredSmzipFiles( asFilePaths );
}
}
@@ -177,12 +178,6 @@ static bool ExportPackage( const RString &sPackageName, const RString &sSourceIn
{
RString sFilePath = asFilePaths[j];
// don't export "thumbs.db" files or "CVS" folders
if( sFilePath.find("CVS") != string::npos )
continue; // skip
if( sFilePath.find("Thumbs.db") != string::npos )
continue; // skip
RString sExt = GetExtension( sFilePath );
bool bUseCompression = true;
if( sExt.CompareNoCase("avi")==0 ||