You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/vendor/github.com/mitchellh/go-fs/directory.go

19 lines
489 B

package fs
// Directory is an entry in a filesystem that stores files.
type Directory interface {
Entry(name string) DirectoryEntry
Entries() []DirectoryEntry
AddDirectory(name string) (DirectoryEntry, error)
AddFile(name string) (DirectoryEntry, error)
}
// DirectoryEntry represents a single entry within a directory,
// which can be either another Directory or a File.
type DirectoryEntry interface {
Name() string
IsDir() bool
Dir() (Directory, error)
File() (File, error)
}