UNPKG
@dominiek/ftp-srv
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Modern, extensible FTP Server
github.com/dominiek/ftp-srv
dominiek/ftp-srv
@dominiek/ftp-srv
/
src
/
commands
/
registration
/
stru.js
12 lines
(11 loc)
•
261 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module
.
exports
= {
directive
:
'STRU'
,
handler
:
function
(
{command} = {}
) {
return
this
.
reply
(
/^F$/i
.
test
(command.
arg
) ?
200
:
504
); },
syntax
:
'{{cmd}} <structure>'
,
description
:
'Set file transfer structure'
,
flags
: {
obsolete
:
true
} };