Versions in this module Expand all Collapse all v1 v1.20240116.0 Jan 16, 2024 Changes in this version + var ErrInvalid = errors.New("invalid argument") + var ErrUncPathSupported = errors.New("UNC path is not supported.") + var Zero = UniPath + func Clean(uni_name string) (string, error) + func FromFSPath(fs_name string) (string, error) + func FromOSPath(os_name string) (string, error) + func Glob(fsys fs.FS, pattern string) ([]string, error) + func Join(names ...string) (string, error) + func MustClean(uni_name string) string + func MustJoin(names ...string) string + func Open(fsys fs.FS, name string) (fs.File, error) + func ReadDir(fsys fs.FS, name string) ([]fs.DirEntry, error) + func ReadFile(fsys fs.FS, name string) ([]byte, error) + func Stat(fsys fs.FS, name string) (fs.FileInfo, error) + func Sub(fsys fs.FS, name string) (fs.FS, error) + func ToFSPath(uni_name string) (string, error) + func ToFSPaths(uni_names []string) ([]string, error) + func ToOSPath(uni_name string) (string, error) + func ToOSPaths(uni_names []string) ([]string, error) + func ValidPath(uni_name string) bool + func ValidSubPath(uni_name string) bool + type UniPath struct + func MustNew(uni_name string) UniPath + func MustNewFromFSPath(fs_name string) UniPath + func MustNewFromOSPath(os_path string) UniPath + func New(uni_name string) (UniPath, error) + func NewFromFSPath(fs_name string) (UniPath, error) + func NewFromOSPath(os_name string) (UniPath, error) + func (up UniPath) FSPath() string + func (up UniPath) Glob(fsys fs.FS) ([]UniPath, error) + func (up UniPath) IsZero() bool + func (up UniPath) Join(names ...string) (UniPath, error) + func (up UniPath) MustJoin(names ...string) UniPath + func (up UniPath) OSPath() string + func (up UniPath) Open(fsys fs.FS) (fs.File, error) + func (up UniPath) ReadDir(fsys fs.FS) ([]fs.DirEntry, error) + func (up UniPath) ReadFile(fsys fs.FS) ([]byte, error) + func (up UniPath) Stat(fsys fs.FS) (fs.FileInfo, error) + func (up UniPath) String() string + func (up UniPath) Sub(fsys fs.FS) (fs.FS, error)