FileExists checks if a file exists in the project directory. The filename is relative to the project directory.
(filename string)
| 91 | // FileExists checks if a file exists in the project directory. |
| 92 | // The filename is relative to the project directory. |
| 93 | func (p *ProjectDir) FileExists(filename string) bool { |
| 94 | _, err := os.Stat(p.Join(filename)) |
| 95 | return err == nil |
| 96 | } |
| 97 | |
| 98 | // IsVerbose returns whether verbose mode is enabled for this project directory. |
| 99 | func (p *ProjectDir) IsVerbose() bool { |