Skip to content

Commit

Permalink
Add missing helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
dvingerh committed Jun 19, 2022
1 parent 279d417 commit b0779b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ venv/
*_downloads\

*.txt

*_live/
6 changes: 6 additions & 0 deletions pyinstalive/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,9 @@ def test_proxy():
return proxy if response.status_code == 200 else None
except Exception as e:
return None

def remove_temp_folder():
try:
shutil.rmtree(globals.download.segments_path)
except Exception as e:
logger.error("Could not remove segment folder: {:s}".format(str(e)))

0 comments on commit b0779b1

Please sign in to comment.