open files now recognizes directories as well

git-svn-id: http://macvim.googlecode.com/svn/trunk@273 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-09-23 15:01:08 +00:00
parent 07f17f6ad8
commit 435f2b20d7
+1 -1
View File
@@ -137,7 +137,7 @@ static NSTimeInterval MMTerminateTimeout = 3;
int i, count = [filenames count];
for (i = 0; i < count; ++i) {
NSString *name = [filenames objectAtIndex:i];
if ([NSFileHandle fileHandleForReadingAtPath:name]) {
if ([[NSFileManager defaultManager] fileExistsAtPath:name]) {
[files addObject:name];
} else if (!firstMissingFile) {
firstMissingFile = name;