Code for impl.fileutils