mirror of
https://github.com/syncthing/syncthing.git
synced 2026-04-02 05:34:57 -04:00
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.