MCPcopy Create free account
hub / github.com/capnspacehook/pandorasbox / OpenFile

Method OpenFile

absfs/filesystem.go:20–20  ·  view source on GitHub ↗

OpenFile is the generalized open call; most users will use Open or Create instead. It opens the named file with specified flag (os.O_RDONLY etc.). If the file does not exist, and the os.O_CREATE flag is passed, it is created with mode perm (before umask). If successful, methods on the returned File

(name string, flag int, perm fs.FileMode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

OpenFileMethod · 0.65
OpenFileFunction · 0.65
OpenFileMethod · 0.65
FuzzVFSRaceFunction · 0.65
TestCreateFunction · 0.65
TestRemoveFunction · 0.65
TestReadWriteFunction · 0.65
TestOpenROFunction · 0.65
TestOpenWOFunction · 0.65
TestOpenAppendFunction · 0.65
TestTruncateToLengthFunction · 0.65
TestTruncateToZeroFunction · 0.65

Implementers 2

pbFSosfs/osfs.go
virtualFSvfs/vfs.go

Calls

no outgoing calls

Tested by 13

FuzzVFSRaceFunction · 0.52
TestCreateFunction · 0.52
TestRemoveFunction · 0.52
TestReadWriteFunction · 0.52
TestOpenROFunction · 0.52
TestOpenWOFunction · 0.52
TestOpenAppendFunction · 0.52
TestTruncateToLengthFunction · 0.52
TestTruncateToZeroFunction · 0.52
TestStatFunction · 0.52
TestWriteAtInAppendModeFunction · 0.52
writeFileFunction · 0.52