1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-28 01:00:26 +00:00
This commit is contained in:
Vincent Batts 2023-11-29 20:28:12 -05:00
parent 9527941501
commit 80f85b01d5
2 changed files with 17 additions and 3 deletions

View file

@ -5,12 +5,15 @@ import (
"sort"
)
// DirectoryHierarchy is the mapped structure for an mtree directory hierarchy
// spec
// DirectoryHierarchy is the mapped structure for an mtree directory hierarchy specification.
type DirectoryHierarchy struct {
Entries []Entry
}
var DefaultDirectoryHierarchyFormatter
type DirectoryHierarchyFormatter interface {}
// WriteTo simplifies the output of the resulting hierarchy spec.
// Satisfies the `io.WriterTo` interface.
func (dh DirectoryHierarchy) WriteTo(w io.Writer) (n int64, err error) {