Update the files() method so that it skips missing directories