Python determines whether the file exists

Python determines whether the file exists

import os

# Determine whether the folder exists, if not, create a folder
if os.path.exists(data_destdir) is False:
     os.makedirs(data_destdir)
0

Leave a Reply

Your email address will not be published.