| 
| static readonly object  | Locker = new object() | 
|   | 
Definition at line 28 of file DirectoryCommand.cs.
 
  
  
      
        
          | static string Ntp.Common.IO.DirectoryCommand.CreateRecursive  | 
          ( | 
          string  | 
          path | ) | 
           | 
         
       
   | 
  
inlinestaticprivate   | 
  
 
Definition at line 45 of file DirectoryCommand.cs.
References s().
   50                 string fullPath = path.Trim();
    57                     fullPath = fullPath.TrimEnd().
    58                         TrimEnd(Path.DirectorySeparatorChar).
    59                         TrimEnd(Path.AltDirectorySeparatorChar);
    60                 } 
while (lastPath != fullPath);
    62                 if (fullPath.Length <= 1)
    66                 string created = null;
    67                 char[] 
s = {Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar};
    68                 var elements = fullPath.Split(s, StringSplitOptions.RemoveEmptyEntries).ToList();
    70                 if (elements.Count <= 1)
    74                 string currentPath = elements[0];
    78                 if (path.Trim()[0] == Path.DirectorySeparatorChar || path.Trim()[0] == Path.AltDirectorySeparatorChar)
    79                     currentPath = Path.DirectorySeparatorChar + currentPath;
    82                 foreach (
string element in elements)
    84                     currentPath = $
"{currentPath}{Path.DirectorySeparatorChar}{element}";
    85                     if (Directory.Exists(currentPath))
    88                     Directory.CreateDirectory(currentPath);
    89                     created = currentPath;
 static readonly object Locker
 
 
 
 
  
  
      
        
          | static string Ntp.Common.IO.DirectoryCommand.CreateRecursiveFromFile  | 
          ( | 
          string  | 
          file | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
  
  
      
        
          | readonly object Ntp.Common.IO.DirectoryCommand.Locker = new object() | 
         
       
   | 
  
staticprivate   | 
  
 
 
The documentation for this class was generated from the following file: