P
Peter Kirk
I am still "playing" with FileSystemWatcher, and have a question regarding
FileSystemEventArgs. For example, the following method is called when a file
is created:
private void OnCreated(object source, FileSystemEventArgs e)
{
Console.WriteLine("OnCreated: FullPath=" + e.FullPath + "; Name=" +
e.Name);
}
But, case-sensitivity is all up the spout. If I create a file called "my
FILE.txt", then the FileSystemEventArgs will not detect the different cases,
and simply report a file called "my file.txt".
Is there any way to alter this behaviour so that FileSystemEventArgs
respects the case of the name of the created file.
Thanks,
Peter
FileSystemEventArgs. For example, the following method is called when a file
is created:
private void OnCreated(object source, FileSystemEventArgs e)
{
Console.WriteLine("OnCreated: FullPath=" + e.FullPath + "; Name=" +
e.Name);
}
But, case-sensitivity is all up the spout. If I create a file called "my
FILE.txt", then the FileSystemEventArgs will not detect the different cases,
and simply report a file called "my file.txt".
Is there any way to alter this behaviour so that FileSystemEventArgs
respects the case of the name of the created file.
Thanks,
Peter