I have a directory that contains lots of files in a complex tree of sub-directories.
If I try to move that directory into a another directory on the same partition, that operation could theoretically take constant time - a rename operation, basically. - as long as none of the files in the source directory are in use and there are no security issues, right?
If so, how can I tell programmatically if it's possible to move directory A to B?
Is there any locking related API that can help me with this?
I'm using C# on NTFS partitions.