misc: add useful (?) comment

This commit is contained in:
Kat Marchán 2019-06-27 11:18:42 -07:00
parent abc0246da6
commit 09ed932870
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ impl Writer {
let cpath = path::content_path(&self.cache, &sri);
DirBuilder::new()
.recursive(true)
// Safe unwrap. cpath always has multiple segments
.create(cpath.parent().unwrap())?;
self.tmpfile.persist(cpath)?;
Ok(sri)