()
| 207 | } |
| 208 | |
| 209 | func (i *FileInfo) RealPath() string { |
| 210 | if realPathFs, ok := i.Fs.(interface { |
| 211 | RealPath(name string) (fPath string, err error) |
| 212 | }); ok { |
| 213 | realPath, err := realPathFs.RealPath(i.Path) |
| 214 | if err == nil { |
| 215 | return realPath |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | return i.Path |
| 220 | } |
| 221 | |
| 222 | func (i *FileInfo) detectType(modify, saveContent, readHeader bool, calcImgRes bool) error { |
| 223 | if IsNamedPipe(i.Mode) { |
no outgoing calls