I'm not really sure under what circumstances MkdirAll returns a nil error but a subsequent stat fails, but apparently it can happen and we need to handle it. The "mode >= 0" was a no-op, and we never call ensureDir anyway without the intention of ensuring the mode, so removed that.
32 KiB
32 KiB