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

@@ -19,6 +19,7 @@ import (
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/ignore"
"github.com/syncthing/syncthing/internal/osutil"
"golang.org/x/text/unicode/norm"
)
@@ -218,7 +219,7 @@ func TestNormalization(t *testing.T) {
for _, s1 := range tests {
// Create a directory for each of the interesting strings above
if err := os.MkdirAll(filepath.Join("testdata/normalization", s1), 0755); err != nil {
if err := osutil.MkdirAll(filepath.Join("testdata/normalization", s1), 0755); err != nil {
t.Fatal(err)
}