Skip to content

Commit

Permalink
fix(fsx): define missing O_APPEND constant (#18)
Browse files Browse the repository at this point in the history
I forgot to export `O_APPEND` 🤦
  • Loading branch information
bassosimone authored Dec 10, 2024
1 parent f9f284f commit 5be3f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fsx/fsx.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (
O_RDWR = fsmodel.O_RDWR
O_TRUNC = fsmodel.O_TRUNC
O_WRONLY = fsmodel.O_WRONLY
O_APPEND = fsmodel.O_APPEND
)

// IsNotExist combines the [os.ErrNotExist] check with
Expand Down
1 change: 1 addition & 0 deletions internal/fsmodel/fsmodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
O_RDWR = os.O_RDWR
O_TRUNC = os.O_TRUNC
O_WRONLY = os.O_WRONLY
O_APPEND = os.O_APPEND
)

// File represents a file in the filesystem.
Expand Down

0 comments on commit 5be3f6a

Please sign in to comment.