Documentation ¶
Index ¶
- func Chmod(name string, m uint32) error
- func DownloadFile(url string, toFile string) error
- func FileExists(filename string) bool
- func GetExecutable(url string, dir string) (bool, error)
- func GetExecutableFile(url string, dir string, xFile string) (bool, error)
- func GetFile(url string, dir string, xFile string, locFile string) (bool, error)
- func ParalellDownloadFile(url string, toFile string) error
- func RemoveFile(filename string)
- func RemoveOldFile(xFile string) string
- func RenameFile(aFile string, nFile string) error
- func URLfileSize(url string) (int, error)
- type DownloadFileInfo
- type DownloadFilesInfo
- type WriteCounter
- type XFileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExecutableFile ¶ added in v1.9.61
GetExecutableFile #
func ParalellDownloadFile ¶
ParalellDownloadFile #
func RemoveFile ¶ added in v1.9.59
func RemoveFile(filename string)
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
Click to show internal directories.
Click to hide internal directories.