Zipping a folder in remote location
My application needs to zip a folder in remote location. I am able to zip it in my local system but not able to go ahead with zip开发者_运维问答ping in remote location. Please suggest me how to do this. Thanks in advance.
Careful with remote file paths. Depending on the protocol you're using to attempt to access the remote file path, you might need to double-escape back slashes. For example, just recently, I wrote a program to create zips over windows unc paths. I had to enter the paths to the remote zip file in my properties file like so:
\\\\remote-host\\shared-dir\\foo\\bar\\blah.zip
精彩评论