|
From: <cre...@us...> - 2006-10-04 00:48:53
|
Revision: 1541
http://svn.sourceforge.net/frontierkernel/?rev=1541&view=rev
Author: creecode
Date: 2006-10-03 11:13:37 -0700 (Tue, 03 Oct 2006)
Log Message:
-----------
for Mac in function fileinitloop, skip /Volumes directory and bundles/packages of type application are not consider folders
Modified Paths:
--------------
Frontier/branches/FSRef_Migration/Common/source/fileloop.c
Modified: Frontier/branches/FSRef_Migration/Common/source/fileloop.c
===================================================================
--- Frontier/branches/FSRef_Migration/Common/source/fileloop.c 2006-10-03 18:08:45 UTC (rev 1540)
+++ Frontier/branches/FSRef_Migration/Common/source/fileloop.c 2006-10-03 18:13:37 UTC (rev 1541)
@@ -304,7 +304,7 @@
// with information that each iteration of a fileloop will need. took
// a minimum of two days fiddling (3/16-17/90) to get this to work -- DW.
//
- // 2006-06-26 creedon: minimally FSRef-ized
+ // 2006-10-03 creedon: minimally FSRef-ized
//
// 3.0.2 dmb: make sure fs is a folder, not a file
//
@@ -408,6 +408,9 @@
if ( equalstrings ( bsfile, "\x04" ".vol" ) ) // skip .vol ( volfs )
continue;
+
+ if ( equalstrings ( bsfile, "\x07" "Volumes" ) ) // skip Volumes
+ continue;
}
if ( foldertestcipbr ( &pb ) )
@@ -726,6 +729,9 @@
err = FSpMakeFSRef ( &fsfile, &( *fsfilet ).fsref );
+ if ( *flfolder )
+ ( void ) fileisfolder ( fsfilet, flfolder );
+
( void ) getfilespecparent ( &( *fsfilet ) );
return ( true );
@@ -745,9 +751,13 @@
FSpMakeFSRef ( &fsfile, &( *fsfilet ).fsref );
+ if ( *flfolder )
+ ( void ) fileisfolder ( fsfilet, flfolder );
+
( void ) getfilespecparent ( &( *fsfilet ) );
return ( true );
+
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|