Filepath is the absolute path to the document on the filesystem.
()
| 24 | |
| 25 | // Filepath is the absolute path to the document on the filesystem. |
| 26 | func (doc Document) Filepath() string { |
| 27 | return filepath.Join(doc.Root, doc.RelativePath) |
| 28 | } |
| 29 | |
| 30 | // Path is the normalized path. |
| 31 | // It uses forward slashes regardless of the operating system. |