file system - add copyFile method with pipe