• Post Reply Bookmark Topic Watch Topic
  • New Topic

AccessDeniedException in Stream  RSS feed

 
Saloon Keeper
Posts: 3330
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to use Files.find() to walk directory tree and I get an AccessDeniedException thrown and it appears that there's no way around it. This happens when it tries to access the directory "C:\users\username\documents\My Music" which I believe is a hard link. BasicFileAttribues only support isSymbolicLink() so I don't see any way to head this off with the BiPredicate.



 
Carey Brown
Saloon Keeper
Posts: 3330
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I found my answer:
"To be regarded as functional style, a function or method shouldn't throw any exceptions. ..."
Java 8 in action,  urma/fusco/mycroft, pg 296
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!