MCPcopy
hub / github.com/GopeedLab/gopeed / Stat

Method Stat

pkg/rest/server.go:366–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364}
365
366func (e *embedFile) Stat() (fs.FileInfo, error) {
367 fi, err := e.File.Stat()
368 if err != nil {
369 return nil, err
370 }
371 return &embedFileInfo{
372 FileInfo: fi,
373 lastModTime: e.lastModTime,
374 }, nil
375}
376
377func ReadJson(r *http.Request, w http.ResponseWriter, v any) bool {
378 if err := json.NewDecoder(r.Body).Decode(v); err != nil {

Callers 15

newEmbedCacheFileSystemFunction · 0.80
TestDeleteTaskForceFunction · 0.80
CheckDuplicateAndRenameFunction · 0.80
CopyDirFunction · 0.80
CreateDirIfNotExistFunction · 0.80
IsExistsFileFunction · 0.80
TestSafeRemoveFunction · 0.80
startTestArchiveServerFunction · 0.80

Calls

no outgoing calls