MCPcopy Index your code
hub / github.com/coder/agentapi / cleanupTempDir

Method cleanupTempDir

lib/httpapi/server.go:647–653  ·  view source on GitHub ↗

cleanupTempDir removes the temporary directory and all its contents

()

Source from the content-addressed store, hash-verified

645
646// cleanupTempDir removes the temporary directory and all its contents
647func (s *Server) cleanupTempDir() {
648 if err := os.RemoveAll(s.tempDir); err != nil {
649 s.logger.Error("Failed to clean up temporary directory", "tempDir", s.tempDir, "error", err)
650 } else {
651 s.logger.Info("Cleaned up temporary directory", "tempDir", s.tempDir)
652 }
653}
654
655func (s *Server) SaveState(source string) error {
656 if err := s.conversation.SaveState(); err != nil {

Callers 1

StopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected