Skip to content

Commit

Permalink
Merge pull request robinrodricks#844 from FanDjango/FEAT
Browse files Browse the repository at this point in the history
Handle possible multiline FEAT reply format
  • Loading branch information
robinrodricks authored Feb 13, 2022
2 parents 22c896b + 68c526d commit 319c28c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FluentFTP/Servers/FtpServerSpecificHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ public static void GetFeatures(FtpClient client, List<FtpCapability> m_capabilit
foreach (var feat in features) {
var featName = feat.Trim().ToUpper();

// Handle possible multiline FEAT reply format
if (featName.StartsWith("211-")) {
featName = featName.Substring(4);
}

if (featName.StartsWith("MLST") || featName.StartsWith("MLSD")) {
m_capabilities.AddOnce(FtpCapability.MLSD);
}
Expand Down

0 comments on commit 319c28c

Please sign in to comment.