@@ 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)
}