basicfs_symlink_windows.go 642 B

123456789101112131415161718192021222324252627
  1. // Copyright (C) 2014 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at http://mozilla.org/MPL/2.0/.
  6. // +build windows
  7. package fs
  8. import "errors"
  9. var errNotSupported = errors.New("symlinks not supported")
  10. func DisableSymlinks() {}
  11. func (BasicFilesystem) SymlinksSupported() bool {
  12. return false
  13. }
  14. func (BasicFilesystem) ReadSymlink(path string) (string, error) {
  15. return "", errNotSupported
  16. }
  17. func (BasicFilesystem) CreateSymlink(path, target string) error {
  18. return errNotSupported
  19. }