Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeUrl ¶
EscapeUrl escapes the path according to the FreeDesktop Trash specification. Which basically just refers to "RFC 2396, section 2".
func FileExists ¶
FileExists omits the parts to make this usable cross-platform and therefore saves a minimal amount of CPU cycles and some allocations.
func Mounts ¶
Mounts reads /proc/mounts and returns all mounts found, excluding everything on the devices sysfs, rootfs, cgroup and /dev/ paths.
func RemoveAllIfExists ¶
RemoveAllIfExists tries to remove the given path. The path can either be a directory or a file. This function catches certain errors, so you don't have to.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.