auto create dir if not exists when rename/copy