 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Child(dir string, file string) (string, bool)
- func FileDisplayName(baseDirs []string, f string) string
- func FileListDisplayNames(baseDirs []string, files []string) []string
- func IsBrokenSymlink(path string) (bool, error)
- func IsChild(dir string, file string) bool
- 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 FileDisplayName ¶ added in v0.7.11
Calculate a display name for a file by figuring it out what basedir it's relative to and trimming the basedir prefix off the front
func FileListDisplayNames ¶ added in v0.7.11
Calculate display name for list of files.
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.