Learning to stage and unstate selected files