~ogham/doom

4a8fc05118891763c95725841e01a3e9276f9ed1 — Benjamin Sago 1 year, 6 months ago 392703f
onlent
1 files changed, 2 insertions(+), 0 deletions(-)

M mpath/path.go
M mpath/path.go => mpath/path.go +2 -0
@@ 35,6 35,7 @@ func (self Path) Join(pathlets ...string) Path {

// CheckDirectoryAccess ensures that the curreth path exists and is a directory,
// returning an error if it doesn’t or it isn’t.
//nolint:wrapcheck
func (self Path) CheckDirectoryAccess() error {
    _, err := os.Stat(self.string)
    if os.IsNotExist(err) {


@@ 47,6 48,7 @@ func (self Path) CheckDirectoryAccess() error {
}

// Read just runs os.Readfile on the path.
//nolint:wrapcheck
func (self Path) Read() ([]byte, error) {
    return os.ReadFile(self.string)
}