bugGNUstep - Bugs: bug #30213, NSFileManager...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30213: NSFileManager attributesOfItemAtPath:error: missing

Submitted by:  David Wetzel <dwetzel>
Submitted on:  Tue 22 Jun 2010 10:50:32 AM UTC  
 
Category: Base/FoundationSeverity: 5 - Blocker
Item Group: BugStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 22 Jun 2010 11:56:06 AM UTC, comment #1:

A patch to fix this would be nice ... you could either implement the new method in terms of the existing equivalent, or modify the old one to become the new one (and re-implement the old method using the new one).

In general it would be nice if someone could update the NSFileHandle API to incude the OSX 10.5 changes. These changes appear largely cosmetic ... renaming methods with slight behavior modifications, generally reducing functionality rather than improving it ... so implementing the 10.5 methods should be relatively straightforward.

Richard Frith-Macdonald <CaS>
Project Member
Tue 22 Jun 2010 10:50:32 AM UTC, original submission:

http://developer.apple.com/mac/library/documentation/cocoa/reference/foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/attributesOfItemAtPath:error:

my code:

NSFileManager * defaultManager = [NSFileManager defaultManager];
NSDictionary * attributes;
NSDate * modDate;

attributes = [defaultManager attributesOfItemAtPath:_wooPath error:NULL];
modDate = [attributes fileModificationDate];

// file not found.
if (!modDate) {
modDate = [NSDate date];
ASSIGN(_wooReadDate, modDate);
ASSIGN(_archive, [NSDictionary dictionary]);
return _archive;
}

David Wetzel <dwetzel>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by dwetzel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 25 Jun 2010 11:16:46 AM UTCCaSOpen/ClosedOpen=>Closed
    Thu 24 Jun 2010 03:01:39 AM UTCdwetzelStatusNone=>Works For Me
    Tue 22 Jun 2010 10:50:49 AM UTCdwetzelCategoryNone=>Base/Foundation
      Item GroupNone=>Bug

    Back to the top


    Powered by Savane 3.1-cleanup1