private List<string> ExtractFileList(string basePath, string payload)
{
List<string> result = new List<string>();
var parts = GetParts(payload);
if(parts.Length > 1)
{
foreach(string p in parts)
{
int idx = p.LastIndexOf(" ", StringComparison.Ordinal);
if(idx > 0)
{
string part = p.Substring(idx + 1).Trim();
if(!IsDirectory(p))
{
// directory -- add it
if(!basePath.EndsWith("/"))
{
basePath += "/";
}
result.Add(basePath + part);
}
}
}
}
return result;
}