MCPcopy
hub / github.com/chrislusf/glow / prefixAndExt

Method prefixAndExt

netchan/store/rotating_file_store.go:407–412  ·  view source on GitHub ↗

prefixAndExt returns the filename part and extension part from the RotatingFileStore's filename.

()

Source from the content-addressed store, hash-verified

405// prefixAndExt returns the filename part and extension part from the RotatingFileStore's
406// filename.
407func (l *RotatingFileStore) prefixAndExt() (prefix, ext string) {
408 filename := filepath.Base(l.filename())
409 ext = filepath.Ext(filename)
410 prefix = filename[:len(filename)-len(ext)] + "-"
411 return prefix, ext
412}
413
414// logInfo is a convenience struct to return the filename and its embedded
415// timestamp.

Callers 1

listOldLogFilesMethod · 0.95

Calls 1

filenameMethod · 0.95

Tested by

no test coverage detected