handleStat method
STAT: Return server status or file/directory info (RFC 959 ยง4.1.3). Without arguments: returns general server status (211). With a pathname: returns a directory listing over the control connection.
Implementation
Future<void> handleStat(String argument, FtpSession session) async {
if (argument.isEmpty) {
session.sendResponse('211 Server is running');
return;
}
await session.statPath(argument);
}