[DEBUG] copy empty file
This commit is contained in:
parent
898a730f70
commit
162f7785f0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user