[DEBUG] copy empty file
This commit is contained in:
parent
898a730f70
commit
162f7785f0
@ -92,9 +92,10 @@ 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:
|
||||||
old_data = file_read_data(path)
|
if os.path.exists(path) == True:
|
||||||
if old_data == data:
|
old_data = file_read_data(path)
|
||||||
return False
|
if old_data == data:
|
||||||
|
return False
|
||||||
#real write of data:
|
#real write of data:
|
||||||
create_directory_of_file(path)
|
create_directory_of_file(path)
|
||||||
file = open(path, "w")
|
file = open(path, "w")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user