(entryName, filesDir string, info *trashInfo)
| 410 | } |
| 411 | |
| 412 | func trashInfoToDTO(entryName, filesDir string, info *trashInfo) *response.RecycleBinDTO { |
| 413 | return &response.RecycleBinDTO{ |
| 414 | Name: path.Base(info.Path), |
| 415 | Size: clampToInt(info.Size), |
| 416 | Type: "file", |
| 417 | DeleteTime: info.DeletionDate, |
| 418 | RName: entryName, |
| 419 | SourcePath: info.Path, |
| 420 | IsDir: info.IsDir, |
| 421 | From: filesDir, |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | func loadRecycleBinDTO(from, name string) (*response.RecycleBinDTO, error) { |
| 426 | if path.Base(from) == recycleBinFilesSubdir { |
no test coverage detected