(df FileSearchInfo)
| 465 | } |
| 466 | |
| 467 | func (f *FileInfo) checkSymlink(df FileSearchInfo) (bool, bool) { |
| 468 | isSymlink := false |
| 469 | isInvalidLink := false |
| 470 | |
| 471 | if IsSymlink(df.Mode()) { |
| 472 | isSymlink = true |
| 473 | info, err := f.Fs.Stat(path.Join(df.Path, df.Name())) |
| 474 | if err == nil { |
| 475 | df.FileInfo = info |
| 476 | } else { |
| 477 | isInvalidLink = true |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | return isSymlink, isInvalidLink |
| 482 | } |
| 483 | |
| 484 | func (f *FileInfo) getContent() error { |
| 485 | if IsBlockDevice(f.FileMode) { |
no test coverage detected