, , , ,else:
, , , , , ,if flag:
, , , , , , , ,flag = False
, , , , , , , ,list.append('------------')
, , , , , ,OldFile = it[0]
, , , , , ,OldPath = it[1]
# -----------------
# Main:
Mpath = os.getcwd()
GetListFiles(Mpath)
CompareList()
if len(list) == 0:
, ,print('Дубликатов нет.')
else:
, ,new_file = open(fn2,'w')
, ,for i in list: #
, , , ,new_file.write(i)
, , , ,print i
, ,print 'Done!'
, ,new_file.close
scan7i.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os
import zipfile
import datetime