1 | "use strict";
|
2 | var __extends = (this && this.__extends) || function (d, b) {
|
3 | for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
4 | function __() { this.constructor = d; }
|
5 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
6 | };
|
7 | var fileJob_1 = require("./fileJob");
|
8 | var tmp = require("tmp");
|
9 | var FtpFileJob = (function (_super) {
|
10 | __extends(FtpFileJob, _super);
|
11 | function FtpFileJob(e, basename) {
|
12 |
|
13 | var tmpobj = tmp.fileSync();
|
14 | _super.call(this, e, tmpobj.name);
|
15 | this.rename(basename);
|
16 | this.setLocallyAvailable(false);
|
17 | }
|
18 | return FtpFileJob;
|
19 | }(fileJob_1.FileJob));
|
20 | exports.FtpFileJob = FtpFileJob;
|