getDirectory() does not create directory.

Also removing unnecessary init variable.