MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / DeleteFile

Function DeleteFile

daemon/utils/file_operator.go:62–68  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

60}
61
62func DeleteFile(path string) error {
63 err := os.Remove(path)
64 if err != nil {
65 logrus.Errorf("Delete File %s Error: %s", path, err.Error())
66 }
67 return err
68}
69
70func CheckPathType(path string) (int, error) {
71 file, err := os.Stat(path)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected