MCPcopy
hub / github.com/pocketbase/pocketbase / getFileName

Method getFileName

core/field_file.go:816–825  ·  view source on GitHub ↗
(file any)

Source from the content-addressed store, hash-verified

814}
815
816func (f *FileField) getFileName(file any) string {
817 switch v := file.(type) {
818 case string:
819 return v
820 case *filesystem.File:
821 return v.Name
822 default:
823 return ""
824 }
825}

Callers 5

DriverValueMethod · 0.95
processFilesToDeleteMethod · 0.95
rememberFilesToDeleteMethod · 0.95
uniqueFilesMethod · 0.95
excludeFilesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected