Skip to content
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

"Can't read file" error on a directory #21

Open
alexwhitman opened this issue Jun 9, 2014 · 6 comments
Open

"Can't read file" error on a directory #21

alexwhitman opened this issue Jun 9, 2014 · 6 comments

Comments

@alexwhitman
Copy link
Contributor

I'm getting an odd error: Can't read file 'CMSADMIN/tinymce3/jscripts/tiny_mce': %!s(MISSING) - It's odd because the path printed is actually a directory, not a file, so I'm not sure why it's trying to be read in the first place in GetFileAndContent().

@piranha
Copy link
Owner

piranha commented Jun 9, 2014

I wonder if this tiny_mce directory is a symlink?

@alexwhitman
Copy link
Contributor Author

You're right, it is. I had forgotten that that had changed in the project recently.

@piranha
Copy link
Owner

piranha commented Jun 9, 2014

Oh... I see, I need to make gr either skip them or go in, instead of printing an error. Thanks for the report, I'll try to get to that. :)

@alexwhitman
Copy link
Contributor Author

grep follows the symlinks so might be best to do that. Just have to be careful about not getting into a loop.

@piranha
Copy link
Owner

piranha commented Jun 13, 2014

Argh, filepath.Walk does not follow symlinks, and going around will require a bit of work. I'll try to fix this soon, just had no time.

@piranha
Copy link
Owner

piranha commented Jun 13, 2014

Ok, I've got basics working (in symlink branch), but I need to get some path aliasing working, since right now it displays real path to file instead of path to symlink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants