Remove sftp uploading
This commit is contained in:
parent
695644c260
commit
f6ba817a26
4 changed files with 2 additions and 17 deletions
|
@ -1,7 +1,6 @@
|
|||
import fs from 'fs';
|
||||
import createError from 'http-errors';
|
||||
import { get as getSFTP } from './sftp';
|
||||
import { get as getS3 } from './s3';
|
||||
|
||||
import debugname from 'debug';
|
||||
const debug = debugname('hostr:file-stream');
|
||||
|
@ -35,12 +34,6 @@ export default function hostrFileStream(localPath, remotePath) {
|
|||
.then(resolve)
|
||||
.catch((err) => {
|
||||
debug('not on sftp', err);
|
||||
writer(localPath, getS3(remotePath))
|
||||
.then(resolve)
|
||||
.catch((s3err) => {
|
||||
debug('not on s3');
|
||||
reject(s3err);
|
||||
});
|
||||
});
|
||||
});
|
||||
localRead.once('readable', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue