mirror of
https://github.com/charmbracelet/glow
synced 2024-11-14 16:07:09 +00:00
12 lines
210 B
Go
12 lines
210 B
Go
|
// +build !darwin
|
||
|
|
||
|
package ui
|
||
|
|
||
|
// Whether or not we should ignore the given path
|
||
|
func ignorePath(m model, p string) bool {
|
||
|
if isDotFileOrDir(m.cwd, p) {
|
||
|
return true
|
||
|
}
|
||
|
return pathIsChild(m.cfg.Gopath, p)
|
||
|
}
|