bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #30213] NSFileManager attributesOfItemAtPath:error: missing


From: David Wetzel
Subject: [bug #30213] NSFileManager attributesOfItemAtPath:error: missing
Date: Tue, 22 Jun 2010 10:50:32 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; de-de) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16

URL:
  <http://savannah.gnu.org/bugs/?30213>

                 Summary: NSFileManager attributesOfItemAtPath:error: missing
                 Project: GNUstep
            Submitted by: dwetzel
            Submitted on: Di 22 Jun 2010 12:50:32 CEST
                Category: None
                Severity: 5 - Blocker
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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;
    }





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30213>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]