More project base

This commit is contained in:
2022-04-01 20:38:43 +02:00
parent d0edf85e98
commit 8e09bf41bb
76 changed files with 3589 additions and 78 deletions

View File

@@ -5,7 +5,7 @@ using FileTime.Core.Services;
namespace FileTime.Providers.Local
{
public class LocalContentProvider : ContentProviderBase
public class LocalContentProvider : ContentProviderBase, ILocalContentProvider
{
protected bool IsCaseInsensitive { get; init; }
public LocalContentProvider() : base("local")
@@ -43,7 +43,7 @@ namespace FileTime.Providers.Local
return Task.FromResult((IItem)FileToElement(new FileInfo(path)));
}
throw new FileNotFoundException();
throw new FileNotFoundException("Directory or file not found", path);
}
public override Task<List<IAbsolutePath>> GetItemsByContainerAsync(FullName fullName) => Task.FromResult(GetItemsByContainer(fullName));