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

Method OpenFile

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

OpenFile open a handle to read or write to a file

(pathname string, flag int)

Source from the content-addressed store, hash-verified

44 Open(pathname string) (fs.File, error)
45 // OpenFile open a handle to read or write to a file
46 OpenFile(pathname string, flag int) (File, error)
47 // Rename renames (moves) oldpath to newpath. If newpath already exists and is not a directory, Rename replaces it.
48 Rename(oldpath, newpath string) error
49 // removes the named file or (empty) directory.

Callers 15

OpenFunction · 0.65
OpenFromPathFunction · 0.65
CreateFromPathFunction · 0.65
writeFileFunction · 0.65
TestFat16WriteReadFileFunction · 0.65
TestFat16RenameFunction · 0.65
TestFat16TruncateFunction · 0.65
TestFat16ManyFilesFunction · 0.65
finalizeElToritoFunction · 0.65

Implementers 5

FileSystemfilesystem/iso9660/iso9660.go
FileSystemfilesystem/ext4/ext4.go
FileSystemfilesystem/squashfs/squashfs.go
FileSystemfilesystem/fat12/fat12.go
fakeFSsync/copy_test.go

Calls

no outgoing calls

Tested by 15

writeFileFunction · 0.52
TestFat16WriteReadFileFunction · 0.52
TestFat16RenameFunction · 0.52
TestFat16TruncateFunction · 0.52
TestFat16ManyFilesFunction · 0.52
finalizeElToritoFunction · 0.52
TestFinalize9660Function · 0.52
TestFinalizeRockRidgeFunction · 0.52