Menu

#37 Directory Recursion Trouble

open
7
2002-06-13
2002-06-13
Eric Seidel
No

Got this this afternoon:

Hi.

OpenAG X started listing over 2000 shares (i have around 100) and
then quitting, even after turning the "Sub" checkbox off in the
preferences.

It was because I had an alias to a parent folder *inside* a
subdirectory of that parent folder. I removed it and everything was
ok.

Just thought you might want to add a few more lines of code to
check for that kind of situation, or warn about it in the docs (which,
I humbly admit, I did not check to see if you already knew about
this).

Paul

Discussion

  • Eric Seidel

    Eric Seidel - 2002-06-13

    Logged In: YES
    user_id=151346

    Actually... that should be handled correctly already.... hum... or not.

    I think I know what you mean. Currently, it will traverse the directory
    until it reaches 100 levels, or until it can't anymore. So yes.... if it was
    taking 100^100, I can see how it might quit.

    I'll see what I can do.

    Any suggestions anyone? I could check when recursing to see if the
    directory i'm recursing to has a shorter path name then the one before...
    but that would not work with real symlinks then... if you liked from say /
    usr/home/eric/mymusic/ to /usr/local/music/ or whatever. who knows.

    -eric

     
  • Eric Seidel

    Eric Seidel - 2002-06-13
    • priority: 5 --> 7
     

Log in to post a comment.