Skip to main content

commit

Function commit 

Source
pub fn commit(
    root: &Path,
    tmp: &Path,
    sha: &str,
    found: &Sniff,
) -> Result<PathBuf>
Expand description

Move an upload to the place its content names, unless the same content is already there. An image also gets its thumbnail (a failure to make one is not the upload’s: the card falls back to the file).