MCPcopy
hub / github.com/AlistGo/alist / String

Method String

pkg/gowebdav/file.go:71–77  ·  view source on GitHub ↗

String lets us see file information

()

Source from the content-addressed store, hash-verified

69
70// String lets us see file information
71func (f File) String() string {
72 if f.isdir {
73 return fmt.Sprintf("Dir : '%s' - '%s'", f.path, f.name)
74 }
75
76 return fmt.Sprintf("File: '%s' SIZE: %d MODIFIED: %s ETAG: %s CTYPE: %s", f.path, f.size, f.modified.String(), f.etag, f.contentType)
77}

Callers 15

upPartMethod · 0.45
upCommitMethod · 0.45
PutMethod · 0.45
resetJsTokenMethod · 0.45
putMethod · 0.45
signContextMethod · 0.45
getRawFilesFunction · 0.45
PutMethod · 0.45
BuildCustomUserAgentFunction · 0.45
getFilesMethod · 0.45
requestMethod · 0.45

Calls

no outgoing calls

Tested by 9

TestEscapeURLFunction · 0.36
TestMultistatusWriterFunction · 0.36
equalXMLMethod · 0.36
TestRoundTripFunction · 0.36
TestMarshalFlushFunction · 0.36
TestEncodeElementFunction · 0.36
TestEncodeTokenFunction · 0.36