From 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 20:06:26 +0900 Subject: container/check: move absolute pathname This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra --- container/initmkdir.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'container/initmkdir.go') diff --git a/container/initmkdir.go b/container/initmkdir.go index 375c0e09..218d6347 100644 --- a/container/initmkdir.go +++ b/container/initmkdir.go @@ -4,19 +4,21 @@ import ( "encoding/gob" "fmt" "os" + + "hakurei.app/container/check" ) func init() { gob.Register(new(MkdirOp)) } // Mkdir appends an [Op] that creates a directory in the container filesystem. -func (f *Ops) Mkdir(name *Absolute, perm os.FileMode) *Ops { +func (f *Ops) Mkdir(name *check.Absolute, perm os.FileMode) *Ops { *f = append(*f, &MkdirOp{name, perm}) return f } // MkdirOp creates a directory at container Path with permission bits set to Perm. type MkdirOp struct { - Path *Absolute + Path *check.Absolute Perm os.FileMode } -- cgit v1.3.1