mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
18 lines
559 B
C#
18 lines
559 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using API.DTOs;
|
|
|
|
namespace API.Interfaces
|
|
{
|
|
public interface IDirectoryService
|
|
{
|
|
/// <summary>
|
|
/// Lists out top-level folders for a given directory. Filters out System and Hidden folders.
|
|
/// </summary>
|
|
/// <param name="rootPath">Absolute path of directory to scan.</param>
|
|
/// <returns>List of folder names</returns>
|
|
IEnumerable<string> ListDirectory(string rootPath);
|
|
|
|
Task<ImageDto> ReadImageAsync(string imagePath);
|
|
}
|
|
} |