Documentation ¶
Overview ¶
Package osfs provides an io/fs implementation of the native OS file system. In windows paths are changed from "C:\Windows" to "/C/Windows" to comply with the path specifications of the fslib.
Index ¶
- type FS
- type Info
- type Item
- type Root
- func (*Root) Close() error
- func (*Root) IsDir() bool
- func (*Root) ModTime() time.Time
- func (*Root) Mode() fs.FileMode
- func (*Root) Name() (name string)
- func (r *Root) Read([]byte) (int, error)
- func (*Root) ReadDir(int) ([]fs.DirEntry, error)
- func (*Root) Size() int64
- func (r *Root) Stat() (fs.FileInfo, error)
- func (*Root) Sys() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct{}
FS implements a read-only wrapper for the native file system.
func (*FS) OpenSystemPath ¶
OpenSystemPath opens a normal path (e.g. 'C:\Windows') instead of a fslib path ('/C/Windows').
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
Info wraps fs.FileInfo for native OS items.
type Root ¶
type Root struct{}
Root is a pseudo root directory for windows partitions.
Click to show internal directories.
Click to hide internal directories.