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

Group
 
 

bug #30213: NSFileManager attributesOfItemAtPath:error: missing

Submitter:  David Wetzel <dwetzel>
Submitted:  Tue 22 Jun 2010 10:50:32 AM UTC
   
 
Category:  Base/Foundation Severity:  5 - Blocker
Item Group:  Bug Status:  Works For Me
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-25 CaS Open/ClosedOpen Closed
    2010-06-24 dwetzel StatusNone Works For Me
    2010-06-22 dwetzel CategoryNone Base/Foundation
        Item GroupNone Bug

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code