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 SFTP #55

Closed beeradmoore closed 7 months ago

beeradmoore commented 7 months ago

Pretty much the same issue as #53, creating it for a second PR.

Calling ListAsync on a FluentStorage.SFTP 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.Sftp("myhost.com", "username", "password");
var results = await storage.ListAsync(options);
robinrodricks commented 7 months ago

Fixed by OP.