MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / readByteFromFile

Function readByteFromFile

src/toolchain.go:298–307  ·  view source on GitHub ↗

Binary

(file string)

Source from the content-addressed store, hash-verified

296
297// Binary
298func readByteFromFile(file string) (content []byte, err error) {
299
300 f, err := os.Open(getPlatformFile(file))
301 defer f.Close()
302
303 content, err = io.ReadAll(f)
304 f.Close()
305
306 return
307}
308
309func writeByteToFile(file string, data []byte) (err error) {
310

Callers 5

getProviderDataFunction · 0.85
getLocalXMLTVFunction · 0.85
parsePlaylistFunction · 0.85
ImagesFunction · 0.85
DataImagesFunction · 0.85

Calls 1

getPlatformFileFunction · 0.70

Tested by

no test coverage detected