knpatel401 / filetree

filetree is an emacs package for displaying and operating on a file list as a file tree, and for maintaining individual notes for files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Permission denied" stops the program

punchedtape opened this issue · comments

directory-files-recursively: Opening directory: Permission denied, q:/barn/USERPROFILE/AppData/Local/Temp/msdtadmin

filetree exits

Thanks for reporting the issue.
I'll try to reproduce it and then add some more graceful error handling.

Can you please see if the latest checkin on master a7a71d87 fixes the issue for you? I modified the call to directory-files-recursively to ignore subdirectories that can't be read, so the call returns all the readable files rather than erroring out on the Permission error.

Thanks!
Ketan

It works!
( forgot to mention: Windows 7, emacs 27.1)

Great--thanks for checking the fix and for reporting the issue!