MCPcopy
hub / github.com/purpleidea/mgmt / FileExistsFunc

Struct FileExistsFunc

lang/core/os/file_exists.go:59–69  ·  view source on GitHub ↗

FileExistsFunc is a function that returns if a local file exists or not. This works with directories too.

Source from the content-addressed store, hash-verified

57// FileExistsFunc is a function that returns if a local file exists or not. This
58// works with directories too.
59type FileExistsFunc struct {
60 interfaces.Textarea
61
62 init *interfaces.Init
63
64 recWatcher *recwatch.RecWatcher
65 events chan error // internal events
66
67 input chan string // stream of inputs
68 filename *string // the active filename
69}
70
71// String returns a simple name for this function. This is needed so this struct
72// can satisfy the pgraph.Vertex interface.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected