DeregisterLocalFile removes the given filepath from the allowlist.
(filePath string)
| 46 | |
| 47 | // DeregisterLocalFile removes the given filepath from the allowlist. |
| 48 | func 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. |