Documentation
¶
Overview ¶
Package osutil implements operating system utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenFile ¶
OpenFile behaves the same as os.OpenFile, except on Windows it sets syscall.FILE_SHARE_DELETE.
Types ¶
type FS ¶
type FS struct{}
FS implements fs.FS, fs.StatFS, and fs.ReadFileFS using package os.
This filesystem does not respect fs.ValidPath rules, and fails testing/fstest.TestFS!
Still, it can be a useful tool to unify implementations that can access either the os filesystem or an fs.FS. It's OK to use this to open files, but you should avoid opening directories, resolving paths, or walking the file system.
func (FS) ReadFile ¶
ReadFile implements fs.ReadFileFS.
Click to show internal directories.
Click to hide internal directories.