Home > Net > Excuse me, IIS released after the file directory, how to download one child all files in the directo
Excuse me, IIS released after the file directory, how to download one child all files in the directo
Time:10-04
Using IIS issued a file directory, such as the address for http://192.168.10.121:8023, open the directory browsing, there are many subdirectory, each subdirectory have multiple files, now want to pack to download all files including a subdirectory, excuse me what method? Now going to the back-end network file is copied to the phone, then all files will be compressed into a zip file to download the browser,
CodePudding user response:
Define a list Save all the file name.
Then through DirectoryInfo and GetFiles recursive way back all the name of the file.
Can then calls the zip function (CMD can also call third-party libraries SharpZipLib) add files into the new rar then execute the download operation.