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);
|
||||
DirBuilder::new()
|
||||
.recursive(true)
|
||||
// Safe unwrap. cpath always has multiple segments
|
||||
.create(cpath.parent().unwrap())?;
|
||||
self.tmpfile.persist(cpath)?;
|
||||
Ok(sri)
|
||||
|
|
|
|||
Loading…
Reference in New Issue