fileutils: move API to std::filesystem, cleanup

Change-Id: I5408d193bda6830395bd705371c86c949643ee74
12 files changed