2021-09-09 14:25:25 +02:00
|
|
|
//go:build !windows
|
|
|
|
// +build !windows
|
2019-01-07 15:47:19 +01:00
|
|
|
|
|
|
|
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
|
2021-04-08 20:59:15 +02:00
|
|
|
|
|
|
|
// IsReserved checks if path contains a reserved name
|
|
|
|
func IsReserved(path string) error {
|
|
|
|
return nil
|
|
|
|
}
|