Documented util functions for file ops