pkg: Fix dir permission check on Windows

This commit is contained in:
Changxin Miao
2020-05-25 12:07:25 +08:00
parent 747ff75c96
commit e06006ea28
3 changed files with 10 additions and 2 deletions

View File

@ -18,5 +18,10 @@ package fileutil
import "os"
const (
// PrivateDirMode grants owner to make/remove files inside the directory.
PrivateDirMode = 0700
)
// OpenDir opens a directory for syncing.
func OpenDir(path string) (*os.File, error) { return os.Open(path) }