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
/
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
} };