system/mkdir: type label in String method

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra 2024-10-17 16:37:23 +09:00
parent 73a698c7cb
commit 064db9f020
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -77,5 +77,9 @@ func (m *Mkdir) Path() string {
}
func (m *Mkdir) String() string {
return fmt.Sprintf("mode: %s path: %q", m.perm.String(), m.path)
t := "Ensure"
if m.ephemeral {
t = TypeString(m.Type())
}
return fmt.Sprintf("mode: %s type: %s path: %q", m.perm.String(), t, m.path)
}