Discover Packages
github.com/wojas/envy
paths
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 4, 2018
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
HomeDir returns the current user's cleaned home dir path (no trailing '/').
IsDir checks if a path is a directory.
IsFile checks if a path is a regular file
IsSubpath checks if path `p` is a subpath of `parent`
ToCheck returns all paths to check using the checkers.
Currently only paths under the home directory are returned for security,
but this will become configurable in a future version.
Shorten shortens paths by replacing the home dir with '~' and current
dir with '.' for display.
Do performs the actual shortening of a path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.