Skip to content

Commit

Permalink
Fix/file id meta issues (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi authored Mar 16, 2023
1 parent 0ed6401 commit fa775c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zboxcore/allocationchange/createdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package allocationchange

import (
"fmt"
"path/filepath"
"path"
"strings"

"github.com/0chain/gosdk/core/common"
Expand Down Expand Up @@ -50,7 +50,7 @@ func (d *DirCreateChange) ProcessChange(rootRef *fileref.Ref) (commitParams Comm
newRef := &fileref.Ref{
Type: fileref.DIRECTORY,
AllocationID: dirRef.AllocationID,
Path: filepath.Join("/", strings.Join(fields[:i+1], "/")),
Path: path.Join("/", strings.Join(fields[:i+1], "/")),
Name: fields[i],
FileID: uid.String(),
}
Expand Down
4 changes: 2 additions & 2 deletions zboxcore/allocationchange/newfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package allocationchange
import (
"errors"
"fmt"
"path/filepath"
"path"
"strings"

zError "github.com/0chain/errors"
Expand Down Expand Up @@ -75,7 +75,7 @@ func (ch *NewFileChange) ProcessChange(rootRef *fileref.Ref) (
newRef := &fileref.Ref{
Type: fileref.DIRECTORY,
AllocationID: dirRef.AllocationID,
Path: filepath.Join("/", strings.Join(fields[:i+1], "/")),
Path: path.Join("/", strings.Join(fields[:i+1], "/")),
Name: fields[i],
FileID: uid.String(),
}
Expand Down

0 comments on commit fa775c2

Please sign in to comment.