🎨 Pull away Path

This commit is contained in:
微凉
2022-01-28 11:04:56 +08:00
parent b797f4302c
commit 1a69d80489
5 changed files with 34 additions and 5 deletions

View File

@ -40,7 +40,7 @@ func (fs *FileSystem) File(rawPath string) (*model.File, error) {
if err != nil {
return nil, err
}
return driver.File(path_, account)
return operate.File(driver, account, path_)
}
func (fs *FileSystem) Files(ctx context.Context, rawPath string) ([]model.File, error) {
@ -56,7 +56,7 @@ func (fs *FileSystem) Files(ctx context.Context, rawPath string) ([]model.File,
if err != nil {
return nil, err
}
files, err := driver.Files(path_, account)
files, err := operate.Files(driver, account, path_)
if err != nil {
return nil, err
}