更新下载文件最后修改时间
This commit is contained in:
@ -295,6 +295,10 @@ namespace 智慧物流软件系统.ViewModel
|
|||||||
var sourcePath = Path.Combine(LocalFile.ResourcesDir, "物料绑定导入模板.xlsx");
|
var sourcePath = Path.Combine(LocalFile.ResourcesDir, "物料绑定导入模板.xlsx");
|
||||||
|
|
||||||
Folder.CopyFile(sourcePath, destinationPath);
|
Folder.CopyFile(sourcePath, destinationPath);
|
||||||
|
|
||||||
|
// 更新文件的最后修改时间(通常设置为当前时间)
|
||||||
|
File.SetLastWriteTime(destinationPath, DateTime.Now);
|
||||||
|
|
||||||
if (File.Exists(destinationPath) && LocalFile.Config.IsLoadingDownloadPath)
|
if (File.Exists(destinationPath) && LocalFile.Config.IsLoadingDownloadPath)
|
||||||
{
|
{
|
||||||
LocalFile.Config.BatchBindImportTemplatePath = destinationPath;
|
LocalFile.Config.BatchBindImportTemplatePath = destinationPath;
|
||||||
|
Reference in New Issue
Block a user