سؤال

I'm using FTP servers on the Load Balanced FTP cluster. I need to put related files to a single server.

Can I upload one file to several different directories by one FtpWebRequest?

هل كانت مفيدة؟

المحلول

You can't. First of all since the ftp protocol is intended to works on request basis, and second, since each FtpWebRequest has a specific path, you need to create a request for each directory in which you want to upload.

نصائح أخرى

I've resolved this issue using KeepAlive property of FtpWebRequest. While KeepAlive is true all files from different requests will be uploaded to a single server.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top