public MovedEventArgs(WatcherChangeTypes changeType, string oldDirectory, string directory, string name)
: base(changeType, directory, name)
{
// Ensure that the directory name ends with a "\"
if (!oldDirectory.EndsWith("\\", StringComparison.Ordinal))
{
oldDirectory = oldDirectory + "\\";
}
// Ensure that the directory name ends with a "\"
if (!directory.EndsWith("\\", StringComparison.Ordinal))
{
directory = directory + "\\";
}
this.oldDirectory = oldDirectory;
this.oldFullPath = Path.Combine(oldDirectory, name);
}