Renamed param from `dir` to `folder`