Fix moveFiles for zip files (#3608)

This commit is contained in:
DingDongSoLong4
2023-03-29 00:28:11 +02:00
committed by GitHub
parent 046fd1c0be
commit a8f9310c0f
5 changed files with 109 additions and 12 deletions

View File

@@ -32,6 +32,10 @@ func (f *Folder) Info(fs FS) (fs.FileInfo, error) {
return f.info(fs, f.Path)
}
type FolderFinder interface {
Find(ctx context.Context, id FolderID) (*Folder, error)
}
// FolderPathFinder finds Folders by their path.
type FolderPathFinder interface {
FindByPath(ctx context.Context, path string) (*Folder, error)
@@ -39,6 +43,7 @@ type FolderPathFinder interface {
// FolderGetter provides methods to find Folders.
type FolderGetter interface {
FolderFinder
FolderPathFinder
FindByZipFileID(ctx context.Context, zipFileID ID) ([]*Folder, error)
FindAllInPaths(ctx context.Context, p []string, limit, offset int) ([]*Folder, error)