Action category policy, governing the modification of files and directories
(ctx context.Context, upstreams []*upstream.Fs, path string)
| 56 | |
| 57 | // Action category policy, governing the modification of files and directories |
| 58 | func (p *EpMfs) Action(ctx context.Context, upstreams []*upstream.Fs, path string) ([]*upstream.Fs, error) { |
| 59 | upstreams, err := p.EpAll.Action(ctx, upstreams, path) |
| 60 | if err != nil { |
| 61 | return nil, err |
| 62 | } |
| 63 | u, err := p.mfs(upstreams) |
| 64 | return []*upstream.Fs{u}, err |
| 65 | } |
| 66 | |
| 67 | // ActionEntries is ACTION category policy but receiving a set of candidate entries |
| 68 | func (p *EpMfs) ActionEntries(entries ...upstream.Entry) ([]upstream.Entry, error) { |