Browse Source

warning about overwritting files

master
Gerry Nelson 5 years ago
parent
commit
8b6968bfc3
  1. 8
      exportfolder.py

8
exportfolder.py

@ -67,9 +67,9 @@ if os.path.exists(basedir):
if not quietmode:
if version > 2:
areyousure=input("The folder exists any existing json files in it will be deleted. Continue? (Y)")
areyousure=input("The folder exists any existing json files pf the same naew will be overwritten. Continue? (Y)")
else:
areyousure=raw_input("The folder already exists any existing json files in it will be deleted. Continue? (Y)")
areyousure=raw_input("The folder exists any existing json files pf the same naew will be overwritten. Continue? (Y)")
else:
areyousure="Y"
@ -82,10 +82,6 @@ if areyousure.upper() =='Y':
# create directory if it doesn't exist
if not os.path.exists(path): os.makedirs(path)
else:
filelist=glob.glob(path+"/*.json")
for file in filelist:
os.remove(file)
folderinfo=getfolderid(folderpath)

Loading…
Cancel
Save