We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9565d6 + d8305ef commit 9cd25f5Copy full SHA for 9cd25f5
thingsboard_gateway/storage/file/file_event_storage.py
@@ -75,7 +75,7 @@ def init_data_files(self):
75
event_storage_files = None
76
if os.path.isdir(_dir):
77
for file in os.listdir(_dir):
78
- if file.startswith('data_'):
+ if file.startswith('data_') and file.endswith('.txt'):
79
data_files[file] = False
80
data_files_size += os.path.getsize(_dir + file)
81
elif file.startswith('state_'):
0 commit comments