--output requires the directory to exist.