mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Rename FileSystemHelper-contentsOfDirectoryAtPath… to -listFilesAtPath to make it clear that we're only listing files, not subdirectories. This is a fairly special purpose method but it saves us from calling back into objective-c a ton of times to filter them in JS, and makes bringing up the file finder ~2x as fast.
14 lines
362 B
Objective-C
14 lines
362 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <JavaScriptCore/JavaScriptCore.h>
|
|
#import "JSCocoa.h"
|
|
|
|
@interface FileSystemHelper : NSObject {
|
|
JSContextRef _ctx;
|
|
}
|
|
|
|
- (id)initWithJSContextRef:(JSContextRef)ctx;
|
|
- (void)listFilesAtPath:(NSString *)path recursive:(BOOL)recursive onComplete:(JSValueRefAndContextRef)jsFunction;
|
|
- (BOOL)isFile:(NSString *)path;
|
|
|
|
@end
|