Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

DirectoryNotFoundException with MoveOptions.DelayUntilReboot #484

Closed
ghost opened this issue Jul 19, 2018 · 0 comments
Closed

DirectoryNotFoundException with MoveOptions.DelayUntilReboot #484

ghost opened this issue Jul 19, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Jul 19, 2018

If I call File.Move(source, null, MoveOptions.DelayUntilReboot) I receive a DirectoryNotFoundExecption with the following stack

System.IO.DirectoryNotFoundException: (3) The system cannot find the path specified.
   at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath) in C:\Users\jjangli\Documents\GitHub\AlphaFS\AlphaFS\NativeError.cs:line 115
   at Alphaleonis.Win32.NativeError.ThrowException(Int32 errorCode, Nullable`1 isFolder, String readPath) in C:\Users\jjangli\Documents\GitHub\AlphaFS\AlphaFS\NativeError.cs:line 58
   at Alphaleonis.Win32.Filesystem.NativeMethods.CloseHandleAndPossiblyThrowException(SafeHandle handle, Int32 lastError, Nullable`1 isFolder, String path, Boolean throwException) in C:\Users\jjangli\Documents\GitHub\AlphaFS\AlphaFS\Filesystem\Native Methods\NativeMethods.Utilities.cs:line 154
   at Alphaleonis.Win32.Filesystem.File.CreateFileCore(KernelTransaction transaction, Nullable`1 isFolder, String path, ExtendedFileAttributes attributes, FileSecurity fileSecurity, FileMode fileMode, FileSystemRights fileSystemRights, FileShare fileShare, Boolean checkPath, Boolean continueOnException, PathFormat pathFormat) in C:\Users\jjangli\Documents\GitHub\AlphaFS\AlphaFS\Filesystem\File Class\File.Create.cs:line 352
   at Alphaleonis.Win32.Filesystem.File.GetSizeCore(KernelTransaction transaction, SafeFileHandle safeHandle, String path, PathFormat pathFormat) in C:\Users\jjangli\Documents\GitHub\AlphaFS\AlphaFS\Filesystem\File Class\File.GetSize.cs:line 107
   at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(KernelTransaction transaction, Boolean driveChecked, Boolean isFolder, String sourcePath, String destinationPath, Nullable`1 copyOptions, Nullable`1 moveOptions, Boolean preserveDates, CopyMoveProgressRoutine progressHandler, Object userProgressData, CopyMoveResult copyMoveResult, PathFormat pathFormat) in C:\Users\jjangli\Documents\GitHub\AlphaFS\AlphaFS\Filesystem\File Class\File.Copy.cs:line 815
   at Alphaleonis.Win32.Filesystem.File.Move(String sourcePath, String destinationPath, MoveOptions moveOptions) in C:\Users\jjangli\Documents\GitHub\AlphaFS\AlphaFS\Filesystem\File Class\File.Move.cs:line 162
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant