file utils: use std::error_code with directory_iterator

Change-Id: I7095ee9fe978dde6ce9b0c45f50e4302240c01df
1 file changed