Hi guys,
I'm copying over some files to a target directory on a daily basis.
Before I move the new files over, I'd like to delete the old files under the target folder, possibly using
System.IO.Directory.Delete()
But my problem is, the target folder is on a public drive where everybody in the company could access, and I don't want to empty the folder while someone else might be using those files.
I'm thinking whether there's a Class that check the status on the files in a specific directory before I come in and delete everything.(I know I would get an IOException if I disregard the status of the files and try to delete them) Thank you