MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / deleteSrcFile

Method deleteSrcFile

internal/fs/archive.go:278–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276}
277
278func (t *ArchiveContentUploadTask) deleteSrcFile() {
279 if !t.finalized {
280 _ = os.RemoveAll(t.FilePath)
281 t.finalized = true
282 }
283}
284
285func moveToTempPath(path, prefix string) (string, error) {
286 newPath, err := genTempFileName(prefix)

Callers 4

CancelMethod · 0.95
RemoveMethod · 0.80
archiveDecompressFunction · 0.80

Calls 1

RemoveAllMethod · 0.65

Tested by

no test coverage detected