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

@@ -1611,7 +1611,7 @@ func (m *Model) CheckFolderHealth(id string) error {
} else if os.IsNotExist(err) {
// If we don't have any files in the index, and the directory
// doesn't exist, try creating it.
err = os.MkdirAll(folder.Path(), 0700)
err = osutil.MkdirAll(folder.Path(), 0700)
if err == nil {
err = folder.CreateMarker()
}