MCPcopy
hub / github.com/go-sql-driver/mysql / DeregisterLocalFile

Function DeregisterLocalFile

infile.go:48–52  ·  view source on GitHub ↗

DeregisterLocalFile removes the given filepath from the allowlist.

(filePath string)

Source from the content-addressed store, hash-verified

46
47// DeregisterLocalFile removes the given filepath from the allowlist.
48func DeregisterLocalFile(filePath string) {
49 fileRegisterLock.Lock()
50 delete(fileRegister, strings.Trim(filePath, `"`))
51 fileRegisterLock.Unlock()
52}
53
54// RegisterReaderHandler registers a handler function which is used
55// to receive a io.Reader.

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected