Fixed an issue with listing files that had a permission denied error.