Skip to content

Commit

Permalink
Add methods to list files and directories in a WebDAV folder
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriy-yashin committed Oct 15, 2024
1 parent d37a8a5 commit ae543e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Sources/EasyExtensions.WebDav/IWebDavCloudClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ public interface IWebDavCloudClient
/// <returns> The list of resources - files and directories. </returns>
Task<IEnumerable<WebDavResource>> GetResourcesAsync(string folder);

/// <summary>
/// Lists all files in a folder on the WebDAV server.
/// </summary>
/// <param name="folder"> The folder name. </param>
/// <returns> The list of resources - files only. </returns>
Task<IEnumerable<WebDavResource>> GetFilesAsync(string folder);


/// <summary>
/// Lists all directories in a folder on the WebDAV server.
/// </summary>
/// <param name="folder"> The folder name. </param>
/// <returns> The list of resources - directories only. </returns>
Task<IEnumerable<WebDavResource>> GetDirectoriesAsync(string folder);

/// <summary>
/// Loads a file from the WebDAV server.
/// </summary>
Expand Down

0 comments on commit ae543e8

Please sign in to comment.