Is it possible to avoid this exception (maybe by excluding directories which can't be read by the PHP process because of a lack of permissions?). I can't find it in the docs.
RecursiveDirectoryIterator::__construct(/proc/tty/driver):
failed to open dir: Permission denied
My code:
$filesystem = new Filesystem(new Local('/proc', LOCK_EX, Local::SKIP_LINKS));
$filesystem->listContents('.', true);