[DEBUG] copy empty file

This commit is contained in:
Edouard DUPIN 2017-03-20 21:45:37 +01:00
parent 898a730f70
commit 162f7785f0

View File

@ -92,6 +92,7 @@ def version_to_string(version):
## ##
def file_write_data(path, data, only_if_new=False): def file_write_data(path, data, only_if_new=False):
if only_if_new == True: if only_if_new == True:
if os.path.exists(path) == True:
old_data = file_read_data(path) old_data = file_read_data(path)
if old_data == data: if old_data == data:
return False return False