[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,9 +92,10 @@ def version_to_string(version):
##
def file_write_data(path, data, only_if_new=False):
if only_if_new == True:
old_data = file_read_data(path)
if old_data == data:
return False
if os.path.exists(path) == True:
old_data = file_read_data(path)
if old_data == data:
return False
#real write of data:
create_directory_of_file(path)
file = open(path, "w")