htf

package
v1.9.82 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 13 Imported by: 0

README

package htf

Funktionen

- func GetFile(url string, dir string, xFile string, locFile string) (bool, error)
- func GetExecutableFile(url string, dir string, xFile string) (bool, error) 
- func GetExecutable(url string, dir string) (bool, error) 
- func GetDownloadFilesInfo(url string) (*DownloadFilesInfo, error)
- func (fl *DownloadFilesInfo) GetFileInfo(FileName string) (*DownloadFileInfo, error) 
- func (f *DownloadFileInfo) Download(toFile string) error

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chmod

func Chmod(name string, m uint32) error

Chmod #

func DownloadFile

func DownloadFile(url string, toFile string) error

DownloadFile #

func FileExists

func FileExists(filename string) bool

FileExists #

func GetExecutable

func GetExecutable(url string, dir string) (bool, error)

GetExecutable #

func GetExecutableFile added in v1.9.61

func GetExecutableFile(url string, dir string, xFile string) (bool, error)

GetExecutableFile #

func GetFile added in v1.9.59

func GetFile(url string, dir string, xFile string, locFile string) (bool, error)

func ParalellDownloadFile

func ParalellDownloadFile(url string, toFile string) error

ParalellDownloadFile #

func RemoveFile added in v1.9.59

func RemoveFile(filename string)

func RemoveOldFile

func RemoveOldFile(xFile string) string

RemoveOldFile #

func RenameFile added in v1.9.62

func RenameFile(aFile string, nFile string) error

RenameFile

func URLfileSize

func URLfileSize(url string) (int, error)

URLfileSize #

Types

type DownloadFileInfo

type DownloadFileInfo struct {
	FileName string
	Web      XFileInfo
	Loc      XFileInfo
	Changed  bool
	URL      string
}

DownloadFileInfo #

func (*DownloadFileInfo) Download

func (f *DownloadFileInfo) Download(toFile string) error

Download #

func (*DownloadFileInfo) ParalellDownload

func (f *DownloadFileInfo) ParalellDownload(toFile string) error

ParalellDownload #

func (*DownloadFileInfo) SetFileTime

func (f *DownloadFileInfo) SetFileTime(toFile string) error

SetFileTime #

type DownloadFilesInfo

type DownloadFilesInfo struct {
	URL  string
	List []DownloadFileInfo
}

DownloadFilesInfo #

func GetDownloadFilesInfo

func GetDownloadFilesInfo(url string) (*DownloadFilesInfo, error)

GetDownloadFilesInfo #

func (*DownloadFilesInfo) GetFileInfo

func (fl *DownloadFilesInfo) GetFileInfo(FileName string) (*DownloadFileInfo, error)

GetFileInfo #

type WriteCounter

type WriteCounter struct {
	Total uint64
}

WriteCounter #

func (WriteCounter) PrintProgress

func (wc WriteCounter) PrintProgress()

PrintProgress #prints the progress of a file write

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Write #

type XFileInfo

type XFileInfo struct {
	Size uint64
	Time time.Time
}

XFileInfo #

Jump to

Keyboard shortcuts

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