public static void Move(string from, string to) {
if (string.Equals(from, to, StringComparison.Ordinal)) return;
EnsureFileDirectoryExists(to);
if (File.GetAttributes(from).HasFlag(FileAttributes.Directory)) {
Directory.Move(from, to);
} else {
File.Move(from, to);
}
}