improve updates

This commit is contained in:
josc146
2023-05-20 10:52:25 +08:00
parent 66a5a903c5
commit 1573c09db0
5 changed files with 34 additions and 2 deletions

View File

@@ -94,6 +94,14 @@ func (a *App) DownloadFile(path string, url string) error {
return nil
}
func (a *App) DeleteFile(path string) error {
err := os.Remove(path)
if err != nil {
return err
}
return nil
}
func (a *App) OpenFileFolder(path string) error {
absPath, err := filepath.Abs(path)
if err != nil {