diff options
Diffstat (limited to 'utils/fs/os/os.go')
-rw-r--r-- | utils/fs/os/os.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fs/os/os.go b/utils/fs/os/os.go index 3ff825e..4f4e651 100644 --- a/utils/fs/os/os.go +++ b/utils/fs/os/os.go @@ -32,7 +32,7 @@ func (fs *OS) Create(filename string) (fs.File, error) { func (fs *OS) OpenFile(filename string, flag int, perm os.FileMode) (fs.File, error) { fullpath := path.Join(fs.base, filename) - if flag|os.O_CREATE != 0 { + if flag&os.O_CREATE != 0 { if err := fs.createDir(fullpath); err != nil { return nil, err } |