[enh] do not check the file and consider the file is not here when the file is empty.

This commit is contained in:
Moul 2016-05-25 23:01:16 +02:00
parent e30f22b48c
commit 10a7cadcfd
2 changed files with 2 additions and 1 deletions

View file

@ -40,7 +40,7 @@ def check_files_exist(app_path):
i+=1 i+=1
def check_file_exist(file_path): def check_file_exist(file_path):
return 1 if os.path.isfile(file_path) else 0 return 1 if os.path.isfile(file_path) and os.stat(file_path).st_size > 0 else 0
def read_file(file_path): def read_file(file_path):
with open(file_path) as f: with open(file_path) as f:

@ -0,0 +1 @@
Subproject commit b93a9b9617ff21d23e91eb95cc2de7ed266c4fc1