mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-04 14:14:12 -04:00
21 lines
683 B
C#
21 lines
683 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using JetBrains.Annotations;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Kyoo.Controllers
|
|
{
|
|
public interface IFileManager
|
|
{
|
|
public IActionResult FileResult([CanBeNull] string path, bool rangeSupport = false);
|
|
|
|
public StreamReader GetReader([NotNull] string path);
|
|
|
|
public ICollection<string> ListFiles([NotNull] string path);
|
|
// TODO implement a List for directorys, a Exist to check existance and all.
|
|
// TODO replace every use of System.IO with this to allow custom paths (like uptobox://path)
|
|
// TODO find a way to handle Transmux/Transcode with this system.
|
|
|
|
public string GetExtraDirectory(string showPath);
|
|
}
|
|
} |