UNPKG
@alancnet/ftp-srv
Version:
latest (0.0.0-development)
0.0.0-development
Modern, extensible FTP Server
github.com/trs/ftp-srv
trs/ftp-srv
@alancnet/ftp-srv
/
src
/
commands
/
registration
/
cdup.js
12 lines
(10 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
cwd =
require
(
'./cwd'
).
handler
;
module
.
exports
= {
directive
: [
'CDUP'
,
'XCUP'
],
handler
:
function
(
args
) { args.
command
.
arg
=
'..'
;
return
cwd.
call
(
this
, args); },
syntax
:
'{{cmd}}'
,
description
:
'Change to Parent Directory'
};