MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / DeleteFile

Method DeleteFile

Src/Common/FSecure/Github/GithubApi.cpp:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void FSecure::GithubApi::DeleteFile(FileEntry const& file)
120{
121 auto url = OBF("https://api.github.com/repos/") + this->m_Username + OBF("/") + this->m_Channel + OBF("/contents/") + file.m_Name;
122
123 json j;
124 j[OBF("message")] = OBF("Initial Commit");
125 j[OBF("sha")] = file.m_Sha;
126
127 SendJsonRequest(url, j, Method::DEL);
128}
129
130void FSecure::GithubApi::DeleteAllFiles()
131{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected