util

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root string

Functions

func ExecCommand

func ExecCommand(c *exec.Cmd) (e error)

func ExecCommandWithBar added in v0.0.51

func ExecCommandWithBar(c *exec.Cmd, totalFrame string) (e error)

执行命令过程中可以循环打印消息

func GetFrameNum added in v0.0.51

func GetFrameNum(s string) (int, error)

func GetRoot added in v0.0.41

func GetRoot() string

func RsyncDir added in v0.0.51

func RsyncDir(localDir, remoteDir, user, server, password string) error

func SetRoot added in v0.0.41

func SetRoot(r string)

Types

type BasicInfo added in v0.0.50

type BasicInfo struct {
	EntryFullPath  string // entry文件所在的绝对路径 /Users/zen/gitea/AVmerge/AVmerger/download/1656385690/c_1624397638/entry.json
	EntryPurgePath string // 文件所在路径 不包含最后一个路径分隔符 /Users/zen/gitea/AVmerge/AVmerger/download/1656385690/c_1624397638
	Video          string // 视频路径
	Audio          string // 音频路径
	Effect         bool   // 判断是否是一个有效目录

}

func GetEntryFilesWithExt added in v0.0.50

func GetEntryFilesWithExt(dir, ext string) (bs []BasicInfo, err error)

Jump to

Keyboard shortcuts

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