resample: output dir option
allow '/' in data name