@@ -90,7 +90,7 @@ func FsMove(c *gin.Context) {
90
90
if ! req .Overwrite {
91
91
for _ , name := range req .Names {
92
92
if res , _ := fs .Get (c , stdpath .Join (dstDir , name ), & fs.GetArgs {NoLog : true }); res != nil {
93
- common .ErrorStrResp (c , "file exists" , 403 )
93
+ common .ErrorStrResp (c , fmt . Sprintf ( "file [%s] exists" , name ) , 403 )
94
94
return
95
95
}
96
96
}
@@ -133,7 +133,7 @@ func FsCopy(c *gin.Context) {
133
133
if ! req .Overwrite {
134
134
for _ , name := range req .Names {
135
135
if res , _ := fs .Get (c , stdpath .Join (dstDir , name ), & fs.GetArgs {NoLog : true }); res != nil {
136
- common .ErrorStrResp (c , "file exists" , 403 )
136
+ common .ErrorStrResp (c , fmt . Sprintf ( "file [%s] exists" , name ) , 403 )
137
137
return
138
138
}
139
139
}
@@ -180,7 +180,7 @@ func FsRename(c *gin.Context) {
180
180
dstPath := stdpath .Join (stdpath .Dir (reqPath ), req .Name )
181
181
if dstPath != reqPath {
182
182
if res , _ := fs .Get (c , dstPath , & fs.GetArgs {NoLog : true }); res != nil {
183
- common .ErrorStrResp (c , "file exists" , 403 )
183
+ common .ErrorStrResp (c , fmt . Sprintf ( "file [%s] exists" , req . Name ) , 403 )
184
184
return
185
185
}
186
186
}
0 commit comments