-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadapt.go
19 lines (16 loc) · 914 Bytes
/
adapt.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package target
import "github.com/magefile/mage/target"
// Path first expands environment variables like $FOO or ${FOO}, and then
// reports if any of the sources have been modified more recently than the
// destination. Path does not descend into directories, it literally just checks
// the modtime of each thing you pass to it. If the destination file doesn't
// exist, it always returns true and nil. It's an error if any of the sources
// don't exist.
var Path = target.Path
// Dir reports whether any of the sources have been modified more recently
// than the destination. If a source or destination is a directory, this
// function returns true if a source has any file that has been modified more
// recently than the most recently modified file in dst. If the destination
// file doesn't exist, it always returns true and nil. It's an error if any
// of the sources don't exist.
var Dir = target.Dir