Skip to content

Commit 64d04ee

Browse files
JanardhanamJanardhanam
authored andcommitted
exits if file has already been converted
1 parent a024d2f commit 64d04ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

HTML-Beauti.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ def main():
3131

3232
filepath = os.path.join(folderpath, filename)
3333

34+
#if .old version of file already, abort
35+
if os.path.exists(filepath+'.old'):
36+
sys.exit()
37+
3438
print ("Cleaning " + filename)
3539

3640
#removing smart quotes

0 commit comments

Comments
 (0)