mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 10:23:16 +08:00
21 lines
591 B
Go
21 lines
591 B
Go
//go:build !windows
|
|
|
|
package file
|
|
|
|
import "os"
|
|
|
|
// OpenFile is the generalized open call; most users will use Open or Create
|
|
// instead. It opens the named file with specified flag (O_RDONLY etc.) and
|
|
// perm (before umask), if applicable. If successful, methods on the returned
|
|
// File can be used for I/O. If there is an error, it will be of type
|
|
// *PathError.
|
|
//
|
|
// Under both Unix and Windows this will allow open files to be
|
|
// renamed and or deleted.
|
|
var OpenFile = os.OpenFile
|
|
|
|
// IsReserved checks if path contains a reserved name
|
|
func IsReserved(path string) error {
|
|
return nil
|
|
}
|