Re: Fwd: Files.walk() is unusable because of AccessDeniedException

2016-05-25 Thread Gilles Habran
;List directory: " + args[0]); > walkReadable(Paths.get(args[0])).flatMap(ListCanRead::walkReadable) > .forEach(System.out::println); > > Files.walk(Paths.get(args[0])) > .forEach(System.out::println); // Could throw > AccessDeniedException

Re: Fwd: Files.walk() is unusable because of AccessDeniedException

2016-05-24 Thread Gilles Habran
hank you. On 24 May 2016 at 10:19, Andrew Haley wrote: > On 05/20/2016 10:38 AM, Gilles Habran wrote: > > why is my message still waiting for approval after a month ? > > What is it you want Java to do? You can't walk the directory > because you don't have permission. sudo should work. > > Andrew. > >

Fwd: Files.walk() is unusable because of AccessDeniedException

2016-05-23 Thread Gilles Habran
Hello, why is my message still waiting for approval after a month ? Thank you. Best regards, Gilles -- Forwarded message -- From: Gilles Habran Date: 16 April 2016 at 07:33 Subject: Files.walk() is unusable because of AccessDeniedException To: core-libs-dev@openjdk.java.net

Files.walk() is unusable because of AccessDeniedException

2016-04-17 Thread Gilles Habran
Good morning, I am trying to use Files.walk() in a Java 8 way but it is broken. I am trying to create an app to manage files and size on all my Linux system (so I would walk from the root directory and show the 5 biggest files of each directory for example). *JDK-8039910* has been raised for thi