Vincent Batts
455edf6d21
For the most part, all the keywords for a standard mtree spec now have a function to produce the contents for a creator. These are used in the "walk" function, and will be used next in the "check" logic. This is still a WIP, as the DirectoryHierarchy produced from the current Walk() is not all-together a valid document. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
20 lines
426 B
Go
20 lines
426 B
Go
// +build !linux
|
|
|
|
package mtree
|
|
|
|
import "os"
|
|
|
|
var (
|
|
unameKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
uidKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
gidKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
nlinkKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
)
|