MCPcopy Index your code
hub / github.com/coder/coder / unlink

Function unlink

agent/agentssh/forward.go:249–258  ·  view source on GitHub ↗

unlink removes files and unlike os.Remove, directories are kept.

(path string)

Source from the content-addressed store, hash-verified

247
248// unlink removes files and unlike os.Remove, directories are kept.
249func unlink(path string) error {
250 // Ignore EINTR like os.Remove, see ignoringEINTR in os/file_posix.go
251 // for more details.
252 for {
253 err := syscall.Unlink(path)
254 if !errors.Is(err, syscall.EINTR) {
255 return err
256 }
257 }
258}

Callers 1

HandleSSHRequestMethod · 0.85

Calls 1

IsMethod · 0.45

Tested by

no test coverage detected