mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-22 08:25:38 +00:00
Vincent Batts
211687bcc4
Initially only on linux platform, but could accommodate BSDs as well. The keyword is rather a prefix of the key. So xattr keyword will have a prefix of "xattr." followed by a suffix of its namespace and name. The value stored in the manifest is the SHA1 digest of the extended attribute's data. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
16 lines
239 B
Go
16 lines
239 B
Go
package mtree
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestWalk(t *testing.T) {
|
|
dh, err := Walk(".", nil, append(DefaultKeywords, "xattr"))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if _, err = dh.WriteTo(os.Stdout); err != nil {
|
|
t.Error(err)
|
|
}
|
|
}
|