Exemplo n.º 1
0
 private void EnsureTempDirectoryCreated()
 {
     if (!FileSystemService.DirectoryExists(FileSystemConfiguration.UploadTempPath))
     {
         FileSystemService.CreateDirectory(FileSystemConfiguration.UploadTempPath);
     }
 }
Exemplo n.º 2
0
        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);
        }