Remove extra File object, prevent crash from inaccessible directories

Signed-off-by: Fernando Barillas <fbis251@gmail.com>