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

Function isValidSessionDir

provisionersdk/tfpath/tfpath.go:92–95  ·  view source on GitHub ↗
(dirName string)

Source from the content-addressed store, hash-verified

90}
91
92func isValidSessionDir(dirName string) bool {
93 match, err := filepath.Match(sessionDirPrefix+"*", dirName)
94 return err == nil && match
95}
96
97func extractArchive(ctx context.Context, logger slog.Logger, fs afero.Fs, directory string, archive []byte) error {
98 logger.Info(ctx, "unpacking source archive",

Callers 1

CleanStaleSessionsMethod · 0.85

Calls 1

MatchMethod · 0.80

Tested by

no test coverage detected