factor code into copy_media_file using symlinks