fix PUT commands
This commit is contained in:
@@ -115,7 +115,7 @@ class WTVDownloadList {
|
|||||||
*/
|
*/
|
||||||
put(path, destination) {
|
put(path, destination) {
|
||||||
this.download_list += "PUT " + path + "\n";
|
this.download_list += "PUT " + path + "\n";
|
||||||
this.download_list += "location: " + destination + "\n";
|
this.download_list += "location: " + destination + "\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,8 +124,7 @@ class WTVDownloadList {
|
|||||||
* @param {string} destination Destination file path in the User Store
|
* @param {string} destination Destination file path in the User Store
|
||||||
*/
|
*/
|
||||||
putUserStoreDest(path, destination) {
|
putUserStoreDest(path, destination) {
|
||||||
this.download_list += "PUT " + path + "\n";
|
this.put(path, this.service_name + ":/userstore?partialPath=" + escape(destination));
|
||||||
this.download_list += "location: " + this.service_name + ":/userstore?partialPath="+escape(destination) + "\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -134,8 +133,7 @@ class WTVDownloadList {
|
|||||||
*/
|
*/
|
||||||
putUserStore(path) {
|
putUserStore(path) {
|
||||||
var destination = path.replace("file://", "");
|
var destination = path.replace("file://", "");
|
||||||
this.download_list += "PUT " + path + "\n";
|
this.putUserStoreDest(path, destination);
|
||||||
this.download_list += "location: " + this.service_name + ":/userstore?partialPath=" + escape(destination) + "\n\n";
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Adds a GET command to the download list
|
* Adds a GET command to the download list
|
||||||
|
|||||||
Reference in New Issue
Block a user