Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ Exists
Method
Exists
cli/config/file.go:73–79 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
71
type
File string
72
73
func
(f File) Exists() bool {
74
if
f ==
""
{
75
return
false
76
}
77
_, err := os.Stat(string(f))
78
return
err == nil
79
}
80
81
// Delete deletes the file.
82
func
(f File) Delete() error {
Callers
15
TestFile
Function · 0.45
GuessSessionID
Function · 0.45
lastUserPrompt
Method · 0.45
inputItems
Method · 0.45
toolItems
Method · 0.45
TestInjectTools_ParallelToolCalls
Function · 0.45
TestAugmentRequestForBedrock_AdaptiveThinking
Function · 0.45
TestRequestPayloadConvertAdaptiveThinkingForBedrock
Function · 0.45
TestRequestPayloadConvertEnabledThinkingForBedrock
Function · 0.45
TestRequestPayloadDisableParallelToolCalls
Function · 0.45
lastUserPrompt
Method · 0.45
disableParallelToolCalls
Method · 0.45
Calls
no outgoing calls
Tested by
8
TestFile
Function · 0.36
TestInjectTools_ParallelToolCalls
Function · 0.36
TestAugmentRequestForBedrock_AdaptiveThinking
Function · 0.36
TestRequestPayloadConvertAdaptiveThinkingForBedrock
Function · 0.36
TestRequestPayloadConvertEnabledThinkingForBedrock
Function · 0.36
TestRequestPayloadDisableParallelToolCalls
Function · 0.36
TestAWSBedrockIntegration
Function · 0.36
TestDynamicParameterTemplate
Function · 0.36