mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Feat: rename file
This commit is contained in:
1 parent
f4c414c0f6
commit
10a2ef4267
7 files changed
+83
-4
No files matched your search
@@ -85,7 +85,7 @@ func (fs *FileSystem) GetContent(ctx context.Context, path string) (io.ReadSeeke
|
||||
if !exist {
|
||||
return nil, ErrObjectNotExist
|
||||
}
|
||||
fs.FileTarget = []model.File{file}
|
||||
fs.FileTarget = []model.File{*file}
|
||||
|
||||
// 将当前存储策略重设为文件使用的
|
||||
fs.Policy = file.GetPolicy()
|
||||
|
||||
Reference in new issue
Block a user