UweKeim / ZetaLongPaths

A .NET library to access files and directories with more than 260 characters length.

Home Page:https://nuget.org/packages/ZetaLongPaths

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in version 1.0.0.15 - The system cannot move the file to a different disk drive

sgrips opened this issue · comments

Hi, With new version 1.0.0.15 I had a big problem during move file example error File: \CEDXXX\XXXX\1163286\4112.pdf non è stato elaborato, causa Error 17 moving file '\CEDXXX\XXXX\1163286\4112.pdf' to '\CEDYYY\BARTBACKUP\VASYYY\20160324_01\1163286\4112.pdf': The system cannot move the file to a different disk drive.
with previous version the command execution didn't error (1.0.0.14).

Now I must rollback previus version.

Please tell me, which function you are calling.

I'll then try to reproduce the error and fix it.

This is the source code in question.

Seems to be a bug in the way I call the MoveFileEx function, see Stack Overflow.

I'll update my source code.