UNPKG

713 BJavaScriptView Raw
1"use strict";
2var __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};
7var fileJob_1 = require("./fileJob");
8var tmp = require("tmp");
9var FtpFileJob = (function (_super) {
10 __extends(FtpFileJob, _super);
11 function FtpFileJob(e, basename) {
12 // Create temp file
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));
20exports.FtpFileJob = FtpFileJob;