Feat: rename file

This commit is contained in:
HFO4
2019-12-07 15:54:07 +08:00
parent f4c414c0f6
commit 10a2ef4267
7 changed files with 83 additions and 4 deletions

View File

@@ -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()