get file list from stdin
determine dest