How to get files information( e.g. file name, modified date ) in zip package in remote stfp server?

Advertisement

realconanin
Guest

How to get files information( e.g. file name, modified date ) in zip package in remote stfp server?

Requirement:
I need download a huge size zip package from remote sftp server at the specific time of one day.
And before download, I need to check the files information( e.g. file name, modified date ) in
zip package to make sure the zip package is what I want.

Now I use Session.GetFileInfo( zipFilePath ) to get the zip file information.
Anyone have idea to the next step without download the zip file?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: How to get files information( e.g. file name, modified date ) in zip package in remote stfp server?

You would have to download only a ZIP central directory (at the and of the ZIP archive) and decode it. But WinSCP does not support partial file downloads.

Reply with quote

Advertisement

You can post new topics in this forum