Documentation
¶
Index ¶
- Variables
- func CheckDirectory(path string) (exists, empty bool, err error)
- func DirectoryExists(path string) (bool, error)
- func IsDirectoryEmpty(path string) (bool, error)
- func ParseTimeInCST(layout, value string) (time.Time, error)
- func ResolveDownloadBase(home, work, dir string) (string, error)
- func SubPathFromTag(tag string) string
- type Locker
Constants ¶
This section is empty.
Variables ¶
View Source
var CSTLocation = time.FixedZone("CST", 8*3600)
CSTLocation is the China Standard Time timezone (UTC+8). All PT sites (M-Team, HDSky, SpringSunday, HDDolby, etc.) return times in CST.
Functions ¶
func CheckDirectory ¶
CheckDirectory 检查目录是否存在且为空 返回值: - exists: 目录是否存在 - empty: 目录是否为空(如果存在) - err: 错误信息(如果存在)
func DirectoryExists ¶
func IsDirectoryEmpty ¶
func ParseTimeInCST ¶ added in v0.3.0
ParseTimeInCST parses a time string in CST timezone.
func ResolveDownloadBase ¶ added in v0.1.1
func SubPathFromTag ¶ added in v0.1.1
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package httpclient 提供基于 github.com/sunerpy/requests 的 HTTP 客户端连接池管理
|
Package httpclient 提供基于 github.com/sunerpy/requests 的 HTTP 客户端连接池管理 |
Click to show internal directories.
Click to hide internal directories.