-
Notifications
You must be signed in to change notification settings - Fork 80
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
Recommended strategy for dealing with broken symlinks? #231
Comments
Maybe |
They are slightly different, ie is there a link vs does the link point to an existing file. I was thinking of a change to |
I think |
But what about Issue #144, where you added the ability to resolve the symlink even if the destination file doesn't exist? Basically, I need a function that will resolve any potential symlinks in a file path, and will not complain if anything is missing. If possible I'd prefer an fs solution since that will be much faster than any recursive R function that I write to handle resolving symlinks. |
Ok I forgot about that, your proposal makes sense then |
I recently got bit by this again. Would it be possible to add a flag to
|
I think making |
xref: workflowr/workflowr#204 |
Is there a recommended strategy for finding and gracefully handling broken symlinks? My package functions run
path_real()
on the project files to resolve any potential symlinks, and I had a user report a bug where a broken symlink broke everything. Is there a better option than always having to check withis_link()
/link_path()
/file_exists()
?Here is a reprex to demonstrate the issue:
Created on 2019-10-29 by the reprex package (v0.3.0.9000)
Session info
The text was updated successfully, but these errors were encountered: