Is it guaranteed that Directory.Move only renames and not copy/delete as long as it is on the same logical drive?
Is it guaranteed that Directory.Move only renames and not copy/delete as long as it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In fact
Directory.Movefails if you attempt to move a directory to a different volume. If you want to perform such a move you have to do the Copy/Delete yourself. I think you can safely assume thatDirectory.Movewill only ever succeed if the operation can be performed without copying files.