How to download latest created Zip file from wwwroot/EPGXML/3/57/

Ashish Kaundal 1 Reputation point

I want to download zip file from _env.WebRootPath
And, I am using 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
                     .ForEach(f => f.OpenRead());

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.
7,523 questions
{count} votes