“Move will not work across volumes” - Why? And how to overcome?

后端 未结 7 946
误落风尘
误落风尘 2020-12-06 10:19

Why is it that File.Move(sourceFileName, destFileName) works fine when the source file and destination files are in different partitions, but Directory.Mo

相关标签:
7条回答
  • 2020-12-06 11:02

    I know this post is a little old... but there is a way around this! Don't try and move the directory, but zip it up and move it as a File.Move(src,dest); and you can then extract it and there you have it!

    0 讨论(0)
提交回复
热议问题