Amphitheatre icon indicating copy to clipboard operation
Amphitheatre copied to clipboard

Folder that access is denied breaks app

Open Fleker opened this issue 9 years ago • 0 comments

Let's say I have a computer with multiple drives. I only want to share one. The rest should remain inaccessible. For simplicity, I just want to add the whole IP as a source. If I do that, the app breaks.

There's a line in VideoUtils.getFilesFromDir that creates the error.

Collections.addAll(smbFiles, file.listFiles());

If the directory cannot be accessed, file.listFiles() creates an exception and breaks the whole app.

I'm currently working on a fix that will catch inaccessible directories but still allow accessible directories to be accessed.

Fleker avatar Jun 08 '15 04:06 Fleker