Rename to runTar, runUntar, displayFilesAsHTML

This commit is contained in:
toby 2017-02-08 12:51:18 -05:00
parent e809deb914
commit 6f077a9c50
3 changed files with 6 additions and 7 deletions

View File

@ -2996,7 +2996,7 @@ var OperationConfig = {
}, },
"Tar": { "Tar": {
description: "Packs the input into a tarball.<br><br>No support for multiple files at this time.", description: "Packs the input into a tarball.<br><br>No support for multiple files at this time.",
run: Compress.tar, run: Compress.runTar,
inputType: "byteArray", inputType: "byteArray",
outputType: "byteArray", outputType: "byteArray",
args: [ args: [
@ -3009,7 +3009,7 @@ var OperationConfig = {
}, },
"Untar": { "Untar": {
description: "Unpacks a tarball and displays it per file.", description: "Unpacks a tarball and displays it per file.",
run: Compress.untar, run: Compress.runUntar,
inputType: "byteArray", inputType: "byteArray",
outputType: "html", outputType: "html",
args: [ args: [

View File

@ -935,7 +935,7 @@ var Utils = {
* @param {File[]} files * @param {File[]} files
* @returns {html} * @returns {html}
*/ */
HTMLFiles: function(files){ displayFilesAsHTML: function(files){
var formatDirectory = function(file) { var formatDirectory = function(file) {
var html = "<div class='panel panel-default'>" + var html = "<div class='panel panel-default'>" +
"<div class='panel-heading' role='tab'>" + "<div class='panel-heading' role='tab'>" +

View File

@ -361,7 +361,7 @@ var Compress = {
* @param {Object[]} args * @param {Object[]} args
* @returns {byteArray} * @returns {byteArray}
*/ */
tar: function(input, args) { runTar: function(input, args) {
// Not implemented yet // Not implemented yet
return input; return input;
}, },
@ -374,7 +374,7 @@ var Compress = {
* @param {Object[]} args * @param {Object[]} args
* @returns {html} * @returns {html}
*/ */
untar: function(input, args) { runUntar: function(input, args) {
var Stream = function(input) { var Stream = function(input) {
this.bytes = input; this.bytes = input;
this.position = 0; this.position = 0;
@ -451,7 +451,6 @@ var Compress = {
} }
} }
var output = Utils.HTMLFiles(files); return Utils.displayFilesAsHTML(files);
return output;
}, },
}; };