fullPath returns the full path of the current file. Only supports the `name` attribute.
()
| 98 | // fullPath returns the full path of the current file. Only supports the |
| 99 | // `name` attribute. |
| 100 | func (p *FormatParams) fullPath() (interface{}, error) { |
| 101 | if p.Attribute != "name" { |
| 102 | return nil, nil |
| 103 | } |
| 104 | return p.Path, nil |
| 105 | } |
| 106 | |
| 107 | // shortPath returns the short path of the current file. Only supports the |
| 108 | // `name` attribute. |