Support the creation of top-level folders on Windows (fixes #1822)

This commit is contained in:
Lode Hoste
2015-05-20 22:46:37 +02:00
parent 76174d31ce
commit f12b8c19be
7 changed files with 91 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
// Copyright (C) 2015 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.
// +build !windows
package osutil
import (
"os"
)
func MkdirAll(path string, perm os.FileMode) error {
return os.MkdirAll(path, perm)
}