createDataFileDir was reproducing code that was also in datafileDir. Changed
createDataFileDir to call datafileDir.