Renamed file_copy function to have proper prefix and avoid namespace collision.