Adding of archive items is mostly operational. Need to handle file upload
This commit is contained in:
18
OpenArchival.Database/FilePathProvider/IFilePathProvider.cs
Normal file
18
OpenArchival.Database/FilePathProvider/IFilePathProvider.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenArchival.Database;
|
||||
|
||||
public interface IFilePathProvider
|
||||
{
|
||||
public Task<bool> AddFile(string path);
|
||||
|
||||
public Task<bool> RemoveFile(string path);
|
||||
|
||||
public Task<IEnumerable<FileInfo>> SearchFiles(string filename);
|
||||
|
||||
public Task<IEnumerable<FileInfo>> TopFiles(int resultsCount);
|
||||
}
|
||||
Reference in New Issue
Block a user