Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
3ee9ce3f
Commit
3ee9ce3f
authored
Mar 16, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sftp
parent
8f58fc0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
perform.js
plugins/di/di-sftp-filesync/perform.js
+5
-5
No files found.
plugins/di/di-sftp-filesync/perform.js
View file @
3ee9ce3f
...
@@ -77,17 +77,17 @@ function perform_function(context,response){
...
@@ -77,17 +77,17 @@ function perform_function(context,response){
}).
then
((
data
)
=>
{
}).
then
((
data
)
=>
{
if
(
data
){
if
(
data
){
data
.
on
(
'data'
,(
dat
)
=>
{
var
nb
=
Buffer
.
concat
([
buff_out
,
dat
]);
var
nb
=
Buffer
.
concat
([
buff_out
,
dat
a
]);
buff_out
=
nb
;
buff_out
=
nb
;
})
data
.
on
(
'end'
,()
=>
{
sftp
.
end
()
sftp
.
end
()
memstore
.
setItem
(
'lastmodify'
,
last_mod
,
function
(
err
){
memstore
.
setItem
(
'lastmodify'
,
last_mod
,
function
(
err
){
var
result
=
(
prm_encoding
==
'binary'
)?
buff_out
:
buff_out
.
toString
(
'utf8'
);
var
result
=
(
prm_encoding
==
'binary'
)?
buff_out
:
buff_out
.
toString
(
'utf8'
);
response
.
success
(
result
,
{
"meta"
:
meta
,
"continue"
:
fs_continue
});
response
.
success
(
result
,
{
"meta"
:
meta
,
"continue"
:
fs_continue
});
});
});
});
}
else
{
}
else
{
sftp
.
end
();
sftp
.
end
();
response
.
reject
();
response
.
reject
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment