-Subproject commit 32017ec6b322f0d29b987d2494e6bc655c67a73a
+Subproject commit 7ac1bf11f8e6267e6146230f2dce93765542bf05
// Refresh
menuItem = [[[NSMenuItem alloc] initWithTitle:@"Refresh" action:@selector(refresh:) keyEquivalent:@""] autorelease];
[menu addItem:menuItem];
- [menu addItem:[NSMenuItem separatorItem]];
// Get Info
if (!sharingAccount || ([firstMenuNode class] != [PithosAccountNode class])) {
+ [menu addItem:[NSMenuItem separatorItem]];
menuItem = [[[NSMenuItem alloc] initWithTitle:@"Get Info" action:@selector(menuGetInfo:) keyEquivalent:@""] autorelease];
[menuItem setRepresentedObject:menuNodes];
[menu addItem:menuItem];
+ (NSUInteger)bytesOfFile:(NSString *)filePath {
NSFileManager *fileManager = [NSFileManager defaultManager];
NSDictionary *attributes = [fileManager attributesOfItemAtPath:filePath error:nil];
- return [[attributes objectForKey:NSFileSize] intValue];
+ return [[attributes objectForKey:NSFileSize] unsignedIntegerValue];
}
// Content type of the file or nil if it cannot be determined