feat(dashboard): traverse file URI from file ID (#2412)
This commit is contained in:
@@ -450,7 +450,7 @@ func (f *DBFS) Get(ctx context.Context, path *fs.URI, opts ...fs.Option) (fs.Fil
|
||||
return nil, fmt.Errorf("failed to get target file: %w", err)
|
||||
}
|
||||
|
||||
if o.notRoot && target.IsRootFolder() {
|
||||
if o.notRoot && (target == nil || target.IsRootFolder()) {
|
||||
return nil, fs.ErrNotSupportedAction.WithError(fmt.Errorf("cannot operate root file"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user