diff options
| author | 2025-03-09 17:47:56 +0100 | |
|---|---|---|
| committer | 2025-12-01 22:08:04 +0100 | |
| commit | b1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch) | |
| tree | 9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/github.com/ncruces/go-sqlite3/vfs/os_std.go | |
| parent | [chore] update URLs to forked source (diff) | |
| download | gotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz | |
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/vfs/os_std.go')
| -rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/vfs/os_std.go | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/vfs/os_std.go b/vendor/github.com/ncruces/go-sqlite3/vfs/os_std.go deleted file mode 100644 index a48c71e9f..000000000 --- a/vendor/github.com/ncruces/go-sqlite3/vfs/os_std.go +++ /dev/null @@ -1,50 +0,0 @@ -//go:build !unix - -package vfs - -import ( - "io/fs" - "os" -) - -const ( - isUnix = false - _O_NOFOLLOW = 0 -) - -func osAccess(path string, flags AccessFlag) error { - fi, err := os.Stat(path) - if err != nil { - return err - } - if flags == ACCESS_EXISTS { - return nil - } - - const ( - S_IREAD = 0400 - S_IWRITE = 0200 - S_IEXEC = 0100 - ) - - var want fs.FileMode = S_IREAD - if flags == ACCESS_READWRITE { - want |= S_IWRITE - } - if fi.IsDir() { - want |= S_IEXEC - } - if fi.Mode()&want != want { - return fs.ErrPermission - } - return nil -} - -func osSetMode(file *os.File, modeof string) error { - fi, err := os.Stat(modeof) - if err != nil { - return err - } - file.Chmod(fi.Mode()) - return nil -} |
