`.filter = .any` can be used here to remove an unnecessary extra OpenFile call when getting the path of a directory