Files
syncthing-arm/lib/fs/basicfs_symlink_windows.go
T

28 lines
643 B
Go
Raw Normal View History

2016-11-24 12:07:14 +00:00
// Copyright (C) 2014 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
2016-11-24 12:07:14 +00:00
// +build windows
package fs
import "errors"
2016-11-24 12:07:14 +00:00
var errNotSupported = errors.New("symlinks not supported")
2016-11-24 12:07:14 +00:00
func DisableSymlinks() {}
2016-11-24 12:07:14 +00:00
func (BasicFilesystem) SymlinksSupported() bool {
return false
2016-11-24 12:07:14 +00:00
}
func (BasicFilesystem) ReadSymlink(path string) (string, error) {
return "", errNotSupported
2016-11-24 12:07:14 +00:00
}
func (BasicFilesystem) CreateSymlink(path, target string) error {
return errNotSupported
2016-11-24 12:07:14 +00:00
}