New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
walk-directory fails because of a single invalid link #15
Comments
What do other APIs (possibly in other languages) do in this scenario? |
I do not know what other people usually do in this situation; when calling |
I was asking to help make a decision on what the (default, or only) behaviour of |
where /home/shalaev/impurities_in_Si/literature/PRB/v11p1555.pdf points to a non-existent file.
|
Interesting. What Lisp is that? Here's what I see with SBCL:
Python works too:
Can you fix osicat to do this? A pull request would be best, but a patch is OK if you don't feel like doing that dance. |
It matters if
I will fix the issue with |
Interesting. Python does list the |
I agree that |
@chalaev I agree with your reasoning. I haven't checked the rest of osicat for matter, but perhaps another flag like |
For now the idea with |
I'm leaning towards just listing it unconditionally, based on what Python and SBCL (mostly) are doing. If the file cannot be accessed, then that can be tested with other predicates. |
Oh I meant for recursing into it, it should of course be listed anyway. |
I'm surprised to see that a suggestion along the lines of |
Will not be available until 2018, sorry.
|
When I recursively scan a directory using
osicat:walk-directory
(e.g., in https://github.com/chalaev/esy/blob/master/main.lisp)
the whole scan procedure fails because of a single invalid
soft link somewhere in the subdirectory tree.
I suggest a quick (and probably not the best one) patch fixing the problem, see
https://github.com/chalaev/esy/tree/master/osicat
The text was updated successfully, but these errors were encountered: