mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 06:40:55 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13964 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
acb893e755
commit
2948c196b3
1 changed files with 7 additions and 3 deletions
|
@ -1161,6 +1161,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
||||||
{
|
{
|
||||||
NSFileManager *fm;
|
NSFileManager *fm;
|
||||||
NSString *ext;
|
NSString *ext;
|
||||||
|
BOOL flag;
|
||||||
|
|
||||||
fm = [NSFileManager defaultManager];
|
fm = [NSFileManager defaultManager];
|
||||||
ext = [appName pathExtension];
|
ext = [appName pathExtension];
|
||||||
|
@ -1169,17 +1170,20 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
||||||
NSString *path;
|
NSString *path;
|
||||||
|
|
||||||
path = [appName stringByAppendingPathExtension: @"app"];
|
path = [appName stringByAppendingPathExtension: @"app"];
|
||||||
if ([fm fileExistsAtPath: path] == NO)
|
if ([fm fileExistsAtPath: path isDirectory: &flag] == NO
|
||||||
|
|| flag == NO)
|
||||||
{
|
{
|
||||||
path = [appName stringByAppendingPathExtension: @"debug"];
|
path = [appName stringByAppendingPathExtension: @"debug"];
|
||||||
if ([fm fileExistsAtPath: path] == NO)
|
if ([fm fileExistsAtPath: path isDirectory: &flag] == NO
|
||||||
|
|| flag == NO)
|
||||||
{
|
{
|
||||||
path = [appName stringByAppendingPathExtension: @"profile"];
|
path = [appName stringByAppendingPathExtension: @"profile"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
appName = path;
|
appName = path;
|
||||||
}
|
}
|
||||||
if ([fm fileExistsAtPath: appName] == NO) // path doesn't exist
|
if ([fm fileExistsAtPath: appName isDirectory: &flag] == NO
|
||||||
|
|| flag == NO)
|
||||||
{
|
{
|
||||||
appName = nil;
|
appName = nil;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue