mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
ignore files beginiing with .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27230 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
02bce68800
commit
f255ae36f0
1 changed files with 25 additions and 1 deletions
|
@ -221,7 +221,10 @@ main(int argc, char** argv, char **env_c)
|
|||
NSAllApplicationsDirectory, NSAllDomainsMask, YES) objectEnumerator];
|
||||
while ((path = [enumerator nextObject]) != nil)
|
||||
{
|
||||
scanApplications(services, path);
|
||||
if ([path hasPrefix: @"."] == NO)
|
||||
{
|
||||
scanApplications(services, path);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -446,6 +449,13 @@ scanDirectory(NSMutableDictionary *services, NSString *path)
|
|||
NSString *newPath;
|
||||
BOOL isDir;
|
||||
|
||||
/*
|
||||
* Ignore anything with a leading dot.
|
||||
*/
|
||||
if ([name hasPrefix: @"."] == YES)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (ext != nil
|
||||
&& ([ext isEqualToString: @"app"] || [ext isEqualToString: @"debug"]
|
||||
|| [ext isEqualToString: @"profile"]))
|
||||
|
@ -581,6 +591,13 @@ scanApplications(NSMutableDictionary *services, NSString *path)
|
|||
NSString *newPath;
|
||||
BOOL isDir;
|
||||
|
||||
/*
|
||||
* Ignore anything with a leading dot.
|
||||
*/
|
||||
if ([name hasPrefix: @"."] == YES)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (ext != nil
|
||||
&& ([ext isEqualToString: @"app"] || [ext isEqualToString: @"debug"]
|
||||
|| [ext isEqualToString: @"profile"]))
|
||||
|
@ -727,6 +744,13 @@ scanServices(NSMutableDictionary *services, NSString *path)
|
|||
NSString *newPath;
|
||||
BOOL isDir;
|
||||
|
||||
/*
|
||||
* Ignore anything with a leading dot.
|
||||
*/
|
||||
if ([name hasPrefix: @"."] == YES)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (ext != nil && [ext isEqualToString: @"service"])
|
||||
{
|
||||
newPath = [path stringByAppendingPathComponent: name];
|
||||
|
|
Loading…
Reference in a new issue