質問編集履歴
1
掲載ソースの誤記を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,27 +80,29 @@
|
|
80
80
|
|
81
81
|
. try {
|
82
82
|
|
83
|
-
. if (_cred == null) {
|
83
|
+
. if (_cred == null) {
|
84
84
|
|
85
|
-
. _cred = new NetworkCredential(id, password);
|
85
|
+
. _cred = new NetworkCredential(id, password);
|
86
86
|
|
87
|
-
. }
|
87
|
+
. }
|
88
88
|
|
89
|
-
. using (WebClient webClient = new WebClient()) {
|
89
|
+
. using (WebClient webClient = new WebClient()) {
|
90
90
|
|
91
|
-
. webClient.Credentials = _cred;
|
91
|
+
. webClient.Credentials = _cred;
|
92
92
|
|
93
|
-
. webClient.Proxy = null;
|
93
|
+
. webClient.Proxy = null;
|
94
94
|
|
95
|
-
. for (int i = 0; i < fullFileNames.Length; i++) {
|
95
|
+
. for (int i = 0; i < fullFileNames.Length; i++) {
|
96
96
|
|
97
|
-
. uri = "ftp://" + url + "/";
|
97
|
+
. uri = "ftp://" + url + "/";
|
98
98
|
|
99
|
-
. uri += serverDir + "/";
|
99
|
+
. uri += serverDir + "/";
|
100
100
|
|
101
|
-
. uri += fileNames[i];
|
101
|
+
. uri += fileNames[i];
|
102
102
|
|
103
|
-
. webClient.UploadFile(uri, fullFileNames[i]);
|
103
|
+
. webClient.UploadFile(uri, fullFileNames[i]);
|
104
|
+
|
105
|
+
. }
|
104
106
|
|
105
107
|
. }
|
106
108
|
|