add ignore option to uploadDir