Skip to content

Commit 9cd25f5

Browse files
authored
Merge pull request #1963 from Andry925/fix/add-extension-to-lookup-logic
Added correct extension to identify file storage files
2 parents d9565d6 + d8305ef commit 9cd25f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thingsboard_gateway/storage/file/file_event_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def init_data_files(self):
7575
event_storage_files = None
7676
if os.path.isdir(_dir):
7777
for file in os.listdir(_dir):
78-
if file.startswith('data_'):
78+
if file.startswith('data_') and file.endswith('.txt'):
7979
data_files[file] = False
8080
data_files_size += os.path.getsize(_dir + file)
8181
elif file.startswith('state_'):

0 commit comments

Comments
 (0)