Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetDirectoryRoot()

static string System.IO.Directory.GetDirectoryRoot ( string path)
inlinestatic

Definition at line 276 of file Directory.cs.

277 {
278 if (path == null)
279 {
280 throw new ArgumentNullException("path");
281 }
282 string fullPath = Path.GetFullPath(path);
283 return Path.GetPathRoot(fullPath);
284 }

References System.IO.Path.GetFullPath(), and System.IO.Path.GetPathRoot().

Referenced by System.IO.FileSystem.OpenHandle().