private void EnsureTempDirectoryCreated() { if (!FileSystemService.DirectoryExists(FileSystemConfiguration.UploadTempPath)) { FileSystemService.CreateDirectory(FileSystemConfiguration.UploadTempPath); } }
public void CreateDirectory(string rootKey, string name) { CheckThatDirOrFileNameIsNotEmpty(name, "name"); ValidateFileItemNameSymbols(name); string path = Path.Combine(GetFullDirPathWithCheckOnExistence(rootKey), name); if (FileSystemService.DirectoryExists(path)) { FileManagementExceptionExecutor.ThrowDirectoryExists(Path.Combine(PreparePath(rootKey), name)); } FileSystemService.CreateDirectory(path); }