Add auto functionality to pushNewFiles method