Documentation ¶
Index ¶
- func NewDirectory() dir.Directory
- type Directory
- func (d *Directory) Ancestry() []dir.Directory
- func (d *Directory) AttachDirectory(dirIn dir.Directory) error
- func (d *Directory) AttachFile(f dir.File) error
- func (d *Directory) CreateDirectory(name string) *Directory
- func (d *Directory) Delete() error
- func (d *Directory) DetachDirectory(dirIn dir.Directory) error
- func (d *Directory) DetachFile(f dir.File) error
- func (d *Directory) FindDirectories(search *regexp.Regexp, recurseLevel int) ([]dir.Directory, error)
- func (d *Directory) FindFiles(search *regexp.Regexp, recurseLevel int) ([]dir.File, error)
- func (d *Directory) IsRoot() bool
- func (d *Directory) Name() string
- func (d *Directory) Owner() dir.User
- func (d *Directory) Parent() dir.Directory
- func (d *Directory) Rename(name string) error
- func (d *Directory) Root() dir.Directory
- func (d *Directory) SetOwner(owner dir.User) error
- func (d *Directory) SetRoot(root dir.Directory) error
- func (d *Directory) String() string
- func (d *Directory) UUID() uuid.UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Directory ¶
Directory is an implementation of dir.Directory
func CreateDirectory ¶
CreateDirectory creates a sub-Directory of the provided Directory
func (*Directory) AttachDirectory ¶
AttachDirectory adds a dir.Directory to this Directory You likely would use the .Create() or .CreateDirectory() method instead, if available.
func (*Directory) AttachFile ¶
AttachFile adds a dir.File to this Directory If your File has a .Create() method, you might use that instead.
func (*Directory) CreateDirectory ¶
CreateDirectory creates a sub-Directory on the receiver Directory
func (*Directory) DetachDirectory ¶
DetachDirectory removes a dir.Directory from this Directory This is intended to be called from the target Directory's .Delete() method itself. This does not test that the Directory is ready to be deleted, whatever that means (is empty, etc).
func (*Directory) DetachFile ¶
DetachFile removes a dir.File from this Directory This is intended to be called from the target File's .Delete() method itself. This does not test that the File is ready to be deleted, whatever that means.
func (*Directory) FindDirectories ¶
func (d *Directory) FindDirectories(search *regexp.Regexp, recurseLevel int) ([]dir.Directory, error)
FindDirectories searches for one or more dir.Directory entries, recursively starting at this Directory
func (*Directory) FindFiles ¶
FindFiles searches for one or more File entries, recursively starting at the Directory