Default behavior is to now use rootDirectory to write to