mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Test: get source URL of files
This commit is contained in:
@@ -80,7 +80,6 @@ func NewFileSystem(user *model.User) (*FileSystem, error) {
|
||||
}
|
||||
|
||||
// NewAnonymousFileSystem 初始化匿名文件系统
|
||||
// TODO 测试
|
||||
func NewAnonymousFileSystem() (*FileSystem, error) {
|
||||
fs := &FileSystem{
|
||||
User: &model.User{},
|
||||
@@ -160,3 +159,9 @@ func (fs *FileSystem) SetTargetFileByIDs(ids []uint) error {
|
||||
fs.SetTargetFile(&files)
|
||||
return nil
|
||||
}
|
||||
|
||||
// CleanTargets 清空目标
|
||||
func (fs *FileSystem) CleanTargets() {
|
||||
fs.FileTarget = []model.File{}
|
||||
fs.DirTarget = []model.Folder{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user