MCPcopy
hub / github.com/rclone/rclone / Open

Function Open

lib/file/file.go:11–13  ·  view source on GitHub ↗

Open opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY. If there is an error, it will be of type *PathError.

(name string)

Source from the content-addressed store, hash-verified

9// descriptor has mode O_RDONLY.
10// If there is an error, it will be of type *PathError.
11func Open(name string) (*os.File, error) {
12 return OpenFile(name, os.O_RDONLY, 0)
13}
14
15// Create creates the named file with mode 0666 (before umask), truncating
16// it if it already exists. If successful, methods on the returned

Callers 5

HashMethod · 0.92
OpenMethod · 0.92
TestUpdatingCheckFunction · 0.92
testFunction · 0.92
TestOpenFileOperationsFunction · 0.70

Calls 1

OpenFileFunction · 0.85

Tested by 2

TestUpdatingCheckFunction · 0.74
TestOpenFileOperationsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…