utils

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2018 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

CreateDir creates the directory at path.

func DirExists

func DirExists(path string) bool

DirExists checks if the path exists.

func EncodeURL

func EncodeURL(rawURL string) string

Properly encodes the URL for compatibility with special characters e.g. 新浪微博 and ЯндексФотки

func IsDirEmpty

func IsDirEmpty(path string) bool

IsDirEmpty checks if the given directory is empty or not.

func RemoveDir

func RemoveDir(path string) error

RemoveDir deletes the path and everything contained in it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL