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

Make f-directories optionally ignore permission errors #76

Closed
mattiasb opened this issue Jan 12, 2017 · 2 comments
Closed

Make f-directories optionally ignore permission errors #76

mattiasb opened this issue Jan 12, 2017 · 2 comments

Comments

@mattiasb
Copy link

Hi!

I constructed the following little helper function to help me fill up my projectile index just now:

(defun my/find-git-projects (dir)
  "Find all git projects under DIR."
  (mapcar #'f-dirname
          (f-directories "~/Documents/"
                         (lambda () (equal (f-filename dir) ".git"))
                         t)))

Unfortunately I get the following error:

f--collect-entries: Opening directory: Permission denied, c:/Users/mattias.bengtsson/AppData/Local/Application Data

Would it be possible to teach f-directories to optionally ignore directories it can't reach due to permissions instead of erroring out?

@rejeep
Copy link
Owner

rejeep commented Jan 15, 2017

No, I think this is basically the same issue as #73

@mattiasb
Copy link
Author

Indeed it is.

@rejeep rejeep closed this as completed Jan 16, 2017
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