mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Use efficient file attribute dictionary accessors.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14477 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d1097cf74
commit
b2aa2c76bc
1 changed files with 6 additions and 6 deletions
|
@ -536,7 +536,7 @@ main(int argc, char **argv, char **env)
|
||||||
|
|
||||||
[projectRefs mergeRefs: originalIndex override: NO];
|
[projectRefs mergeRefs: originalIndex override: NO];
|
||||||
dict = [mgr fileAttributesAtPath: refsFile traverseLink: YES];
|
dict = [mgr fileAttributesAtPath: refsFile traverseLink: YES];
|
||||||
rDate = [dict objectForKey: NSFileModificationDate];
|
rDate = [dict fileModificationDate];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -628,7 +628,7 @@ main(int argc, char **argv, char **env)
|
||||||
|
|
||||||
attrs = [mgr fileAttributesAtPath: sfile
|
attrs = [mgr fileAttributesAtPath: sfile
|
||||||
traverseLink: YES];
|
traverseLink: YES];
|
||||||
d = [attrs objectForKey: NSFileModificationDate];
|
d = [attrs fileModificationDate];
|
||||||
if (sDate == nil || [d earlierDate: sDate] == sDate)
|
if (sDate == nil || [d earlierDate: sDate] == sDate)
|
||||||
{
|
{
|
||||||
sDate = d;
|
sDate = d;
|
||||||
|
@ -655,7 +655,7 @@ main(int argc, char **argv, char **env)
|
||||||
NSString *ofile = [a objectAtIndex: j];
|
NSString *ofile = [a objectAtIndex: j];
|
||||||
|
|
||||||
attrs = [mgr fileAttributesAtPath: ofile traverseLink: YES];
|
attrs = [mgr fileAttributesAtPath: ofile traverseLink: YES];
|
||||||
d = [attrs objectForKey: NSFileModificationDate];
|
d = [attrs fileModificationDate];
|
||||||
if (gDate == nil || [d laterDate: gDate] == gDate)
|
if (gDate == nil || [d laterDate: gDate] == gDate)
|
||||||
{
|
{
|
||||||
gDate = d;
|
gDate = d;
|
||||||
|
@ -843,7 +843,7 @@ main(int argc, char **argv, char **env)
|
||||||
if (ignoreDependencies == NO)
|
if (ignoreDependencies == NO)
|
||||||
{
|
{
|
||||||
attrs = [mgr fileAttributesAtPath: gsdocfile traverseLink: YES];
|
attrs = [mgr fileAttributesAtPath: gsdocfile traverseLink: YES];
|
||||||
gDate = [attrs objectForKey: NSFileModificationDate];
|
gDate = [attrs fileModificationDate];
|
||||||
AUTORELEASE(RETAIN(gDate));
|
AUTORELEASE(RETAIN(gDate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1133,10 +1133,10 @@ main(int argc, char **argv, char **env)
|
||||||
* When were the files last modified?
|
* When were the files last modified?
|
||||||
*/
|
*/
|
||||||
attrs = [mgr fileAttributesAtPath: gsdocfile traverseLink: YES];
|
attrs = [mgr fileAttributesAtPath: gsdocfile traverseLink: YES];
|
||||||
gDate = [attrs objectForKey: NSFileModificationDate];
|
gDate = [attrs fileModificationDate];
|
||||||
AUTORELEASE(RETAIN(gDate));
|
AUTORELEASE(RETAIN(gDate));
|
||||||
attrs = [mgr fileAttributesAtPath: htmlfile traverseLink: YES];
|
attrs = [mgr fileAttributesAtPath: htmlfile traverseLink: YES];
|
||||||
hDate = [attrs objectForKey: NSFileModificationDate];
|
hDate = [attrs fileModificationDate];
|
||||||
AUTORELEASE(RETAIN(hDate));
|
AUTORELEASE(RETAIN(hDate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue