11,582 questions
How to download latest created Zip file from wwwroot/EPGXML/3/57/15_07_2021_10_48_12.zip
Ashish Kaundal
1
Reputation point
I want to download zip file from _env.WebRootPath
And, I am using ionic.zip to create a zip file
Here I am trying to download zip file : -
(from f in new DirectoryInfo(path).GetFiles()
where f.LastAccessTime < DateTime.Now.Subtract(TimeSpan.FromSeconds(1))
select f
).ToList()
.ForEach(f => f.OpenRead());
Developer technologies | C#
Sign in to answer