Cog/FileDrawer/DirectoryNode.m

29 lines
486 B
Mathematica
Raw Normal View History

2006-09-02 12:09:20 -04:00
//
// DirectoryNode.m
// Cog
//
// Created by Vincent Spader on 8/20/2006.
// Copyright 2006 Vincent Spader. All rights reserved.
//
#import "DirectoryNode.h"
2006-09-02 12:09:20 -04:00
#import "FileNode.h"
#import "SmartFolderNode.h"
2006-09-02 12:09:20 -04:00
@implementation DirectoryNode
2006-09-02 12:09:20 -04:00
- (BOOL)isLeaf
{
return NO;
}
- (void)updatePath
{
NSArray *contents = [[[NSFileManager defaultManager] directoryContentsAtPath:path] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
[self processPaths: contents];
2006-09-02 12:09:20 -04:00
}
@end