MCPcopy
hub / github.com/pocketbase/pocketbase / getBackupFiles

Function getBackupFiles

apis/backup_test.go:856–864  ·  view source on GitHub ↗
(app core.App)

Source from the content-addressed store, hash-verified

854}
855
856func getBackupFiles(app core.App) ([]*blob.ListObject, error) {
857 fsys, err := app.NewBackupsFilesystem()
858 if err != nil {
859 return nil, err
860 }
861 defer fsys.Close()
862
863 return fsys.List("")
864}
865
866func ensureNoBackups(t testing.TB, app *tests.TestApp) {
867 files, err := getBackupFiles(app)

Callers 4

TestBackupsCreateFunction · 0.85
TestBackupUploadFunction · 0.85
TestBackupsDeleteFunction · 0.85
ensureNoBackupsFunction · 0.85

Calls 3

NewBackupsFilesystemMethod · 0.65
CloseMethod · 0.65
ListMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…