Port the CopyFile component
Port DirName component