```
checkState(fs.exists(directory), "Directory %s does not exist", directory);
```

That saves a bunch of string creation in the common case