MCPcopy Create free account
hub / github.com/devld/go-drive / OpenFile

Method OpenFile

server/webdav/file.go:42–42  ·  view source on GitHub ↗
(ctx context.Context, name string, flag int, perm os.FileMode)

Source from the content-addressed store, hash-verified

40type FileSystem interface {
41 Mkdir(ctx context.Context, name string, perm os.FileMode) error
42 OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (File, error)
43 RemoveAll(ctx context.Context, name string) error
44 Rename(ctx context.Context, oldName, newName string) error
45 Stat(ctx context.Context, name string) (os.FileInfo, error)

Callers 15

ChunkUploadMethod · 0.65
CompleteUploadMethod · 0.65
OpenFileMethod · 0.65
writeFailedMarkerFunction · 0.65
createItemMethod · 0.65
patchFunction · 0.65
handleGetHeadPostMethod · 0.65
handlePutMethod · 0.65
handleLockMethod · 0.65
findFunction · 0.65
testFSFunction · 0.65
TestMemFSRootFunction · 0.65

Implementers 3

memFSserver/webdav/file.go
permissionFileSystemserver/webdav/webdav_test.go
DriveFScommon/drive_util/fs.go

Calls

no outgoing calls

Tested by 10

findFunction · 0.52
testFSFunction · 0.52
TestMemFSRootFunction · 0.52
TestMemFileReaddirFunction · 0.52
TestMemFileFunction · 0.52
TestMemFileWriteAllocsFunction · 0.52
BenchmarkMemFileWriteFunction · 0.52
TestCopyMovePropsFunction · 0.52
buildTestFSFunction · 0.52
TestFilenameEscapeFunction · 0.52