robinrodricks / FluentStorage

A polycloud .NET cloud storage abstraction layer. Provides Blob storage (AWS S3, GCP, FTP, SFTP, Azure Blob/File/Event Hub/Data Lake) and Messaging (AWS SQS, Azure Queue/ServiceBus). Supports .NET 5+ and .NET Standard 2.0+. Pure C#.
MIT License
263 stars 33 forks source link

[Bug] ListAsync recursion does not work for FTP #53

Closed beeradmoore closed 7 months ago

beeradmoore commented 7 months ago

Calling ListAsync on a FluentStorage.FTP with Recurse set to true in ListOptions does not do anything.

ListOptions options = new ListOptions();
options.Recurse = true;
options.FolderPath = "/some/test/";

IBlobStorage storage = StorageFactory.Blobs.Ftp("myhost.com", new NetworkCredential("username", "password"));
var results = await storage.ListAsync(options);
beeradmoore commented 7 months ago

Fixed with #54