remove combined folder before download

This commit is contained in:
guidotheelen 2020-04-20 15:32:48 +02:00
parent e6e8aacc0a
commit 1aa177e6d3

View file

@ -33,6 +33,10 @@ SCOPES = ["https://www.googleapis.com/auth/drive"]
def main(folder_name="", reporting=False): def main(folder_name="", reporting=False):
# Remove combined_png dir if it exists
if path.exists("./build/combined_png"):
shutil.rmtree("./build/combined_png")
# Create a token.pickle file to store the users session # Create a token.pickle file to store the users session
service = get_service() service = get_service()