mirror of https://github.com/zkat/cacache-rs.git
misc: add useful (?) comment
This commit is contained in:
parent
abc0246da6
commit
09ed932870
|
|
@ -32,6 +32,7 @@ impl Writer {
|
||||||
let cpath = path::content_path(&self.cache, &sri);
|
let cpath = path::content_path(&self.cache, &sri);
|
||||||
DirBuilder::new()
|
DirBuilder::new()
|
||||||
.recursive(true)
|
.recursive(true)
|
||||||
|
// Safe unwrap. cpath always has multiple segments
|
||||||
.create(cpath.parent().unwrap())?;
|
.create(cpath.parent().unwrap())?;
|
||||||
self.tmpfile.persist(cpath)?;
|
self.tmpfile.persist(cpath)?;
|
||||||
Ok(sri)
|
Ok(sri)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue