Commit 9c9262dc authored by Eric's avatar Eric

[update] modify code

parent 2b09986a
......@@ -26,7 +26,6 @@ var (
func NewUserVolume(user *model.User, addr string) *UserVolume {
rawID := fmt.Sprintf("'%s@%s", user.Username, addr)
fmt.Println(rawID)
uVolume := &UserVolume{
Uuid: elfinder.GenerateID(rawID),
user: user,
......@@ -406,7 +405,9 @@ func (u *UserVolume) MergeChunk(cid, total int, dirPath, filename string) (elfin
partFD, err := os.Open(partPath)
if err != nil {
return rest, err
logger.Debug(err)
_ = os.Remove(partPath)
continue
}
_, err = io.Copy(fd, partFD)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment