How to download latest created Zip file from wwwroot/EPGXML/3/57/15_07_2021_10_48_12.zip

Ashish Kaundal 1 Reputation point
2021-07-16T06:33:36.677+00:00

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#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.