Added CreateDir and file.Exists