@@ -958,7 +958,7 @@ Change the cid version or hash function of the root node of a given path.
958
958
},
959
959
}
960
960
961
- func updatePath (rt * mfs.Root , pth string , prefix * cid.Prefix , flush bool ) error {
961
+ func updatePath (rt * mfs.Root , pth string , prefix cid.Builder , flush bool ) error {
962
962
if prefix == nil {
963
963
return nil
964
964
}
@@ -1088,7 +1088,7 @@ Remove files or directories.
1088
1088
},
1089
1089
}
1090
1090
1091
- func getPrefixNew (req * cmds.Request ) (* cid.Prefix , error ) {
1091
+ func getPrefixNew (req * cmds.Request ) (cid.Builder , error ) {
1092
1092
cidVer , cidVerSet := req .Options ["cid-version" ].(int )
1093
1093
hashFunStr , hashFunSet := req .Options ["hash" ].(string )
1094
1094
@@ -1117,7 +1117,7 @@ func getPrefixNew(req *cmds.Request) (*cid.Prefix, error) {
1117
1117
return & prefix , nil
1118
1118
}
1119
1119
1120
- func getPrefix (req oldcmds.Request ) (* cid.Prefix , error ) {
1120
+ func getPrefix (req oldcmds.Request ) (cid.Builder , error ) {
1121
1121
cidVer , cidVerSet , _ := req .Option ("cid-version" ).Int ()
1122
1122
hashFunStr , hashFunSet , _ := req .Option ("hash" ).String ()
1123
1123
@@ -1146,7 +1146,7 @@ func getPrefix(req oldcmds.Request) (*cid.Prefix, error) {
1146
1146
return & prefix , nil
1147
1147
}
1148
1148
1149
- func getFileHandle (r * mfs.Root , path string , create bool , prefix * cid.Prefix ) (* mfs.File , error ) {
1149
+ func getFileHandle (r * mfs.Root , path string , create bool , prefix cid.Builder ) (* mfs.File , error ) {
1150
1150
target , err := mfs .Lookup (r , path )
1151
1151
switch err {
1152
1152
case nil :
0 commit comments