Documentation ¶
Index ¶
- func Child(dir string, file string) (string, bool)
- func IsBrokenSymlink(path string) (bool, error)
- func IsDir(path string) bool
- func IsRegularFile(path string) bool
- func RealAbs(path string) (string, error)
- func RealChild(dir string, file string) (string, bool, error)
- func Realwd() (string, error)
- func TryAsCwdChildren(absPaths []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Child ¶
Given absolute paths `dir` and `file`, returns the relative path of `file` relative to `dir`.
Returns true if successful. If `file` is not under `dir`, returns false.
func IsBrokenSymlink ¶
func IsRegularFile ¶ added in v0.4.1
func TryAsCwdChildren ¶
TryAsCwdChildren converts the given absolute paths to children of the CWD, if possible (otherwise, leaves them as absolute paths).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.