extend fileutils rather than making private helper method