removeall.go 369 B

123456789101112131415
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. package dirfs
  4. import (
  5. "context"
  6. "os"
  7. )
  8. // RemoveAll implements webdav.File. No removal is supported and this always
  9. // returns os.ErrPermission.
  10. func (dfs *FS) RemoveAll(ctx context.Context, name string) error {
  11. return &os.PathError{Op: "rm", Path: name, Err: os.ErrPermission}
  12. }