Definition at line 108 of file FileSystem.cs.
109 {
111 {
112 return;
113 }
115 bool flag = false;
117 if (num >= 2 && PathInternal.EndsInDirectorySeparator(
fullPath.AsSpan()))
118 {
119 num--;
120 }
123 {
126 {
129 {
131 }
132 else
133 {
134 flag = true;
135 }
137 {
139 }
141 }
142 }
148 {
151 sECURITY_ATTRIBUTES.lpSecurityDescriptor = (
IntPtr)
ptr;
153 while (
list.Count > 0)
154 {
159 {
162 {
164 }
166 {
169 }
170 }
171 }
172 }
173 if (
count == 0 && !flag)
174 {
177 {
178 throw Win32Marshal.GetExceptionForWin32Error(3,
pathRoot);
179 }
180 }
182 {
183 throw Win32Marshal.GetExceptionForWin32Error(
num3,
path);
184 }
185 }
static bool CreateDirectory(string path, ref SECURITY_ATTRIBUTES lpSecurityAttributes)
void Add(TKey key, TValue value)
static bool DirectoryExists(string fullPath)
static bool FileExists(string fullPath)
static int GetLastWin32Error()
References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, Interop.Kernel32.CreateDirectory(), System.IO.FileSystem.DirectoryExists(), System.IO.PathInternal.EndsInDirectorySeparator(), System.IO.FileSystem.FileExists(), System.IO.Win32Marshal.GetExceptionForWin32Error(), System.Runtime.InteropServices.Marshal.GetLastWin32Error(), System.IO.Path.GetPathRoot(), System.IO.PathInternal.GetRootLength(), System.IO.PathInternal.IsDirectorySeparator(), System.list, and System.text.