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

◆ MoveDirectory()

static void System.IO.FileSystem.MoveDirectory ( string sourceFullPath,
string destFullPath )
inlinestatic

Definition at line 317 of file FileSystem.cs.

318 {
320 {
322 switch (lastWin32Error)
323 {
324 case 2:
325 throw Win32Marshal.GetExceptionForWin32Error(3, sourceFullPath);
326 case 183:
327 throw Win32Marshal.GetExceptionForWin32Error(183, destFullPath);
328 case 5:
329 throw new IOException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, sourceFullPath), Win32Marshal.MakeHRFromErrorCode(lastWin32Error));
330 default:
331 throw Win32Marshal.GetExceptionForWin32Error(lastWin32Error);
332 }
333 }
334 }
static bool MoveFile(string src, string dst, bool overwrite)
Definition Interop.cs:969

References System.SR.Format(), System.IO.Win32Marshal.GetExceptionForWin32Error(), System.Runtime.InteropServices.Marshal.GetLastWin32Error(), System.IO.Win32Marshal.MakeHRFromErrorCode(), Interop.Kernel32.MoveFile(), and System.SR.UnauthorizedAccess_IODenied_Path.

Referenced by System.IO.Directory.Move(), and System.IO.DirectoryInfo.MoveTo().