最初,我的文件名为“my file.txt”
var file = new FileInfo("C:\my file.txt");
我的代码运行时文件被重命名为“My File.txt”。我的代码如何刷新文件名?
file.Refresh();
不更新 Name 属性中的拼写。