Hi,
[email protected] wrote:
If in that directory there are at least two files (normal file, folder
or symlink)
with exactly ONE letter and a following colon. e.g. "m:" and "r:"
searchtool never reaches an end, when recursing in that directory.
I fear I can trace this behaviour directly into base.
I created this directory:
++ testdir
|
+--a
+--b
+---file1.txt
ok? now I have this small program:
fm = [NSFileManager defaultManager];
e = [fm enumeratorAtPath:@"/home/multix/Desktop/testdir"];
while (o = [e nextObject])
{
NSLog(@"%@", o);
}
It will print out:
2014-06-19 17:56:07.871 DirTest[51] a
2014-06-19 17:56:07.872 DirTest[51] b
2014-06-19 17:56:07.873 DirTest[51] b/file1.txt
Which is fine!
However if I rename the directory "a" to "a:", just that....
The program will loop until it exhausts file descriptors.
<...>
2014-06-19 17:59:11.221 DirTest[10825] a:b
2014-06-19 17:59:11.221 DirTest[10825] a:b/file1.txt
2014-06-19 17:59:11.221 DirTest[10825] a:
2014-06-19 17:59:11.221 DirTest[10825] a:b
2014-06-19 17:59:11.221 DirTest[10825] a:b/file1.txt
2014-06-19 17:59:11.221 DirTest[10825] a:
2014-06-19 17:59:11.221 DirTest[10825] Failed to recurse into directory
'/home/multix/Desktop/testdir/b' - Too many open files
<...>
thus I fear it is something in NSFileManager! On unix the ":" shouldn't
be special like on Mac where it is a path separator.
Richard, do you have a clue?
Riccardo
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep