Skip to content

Commit 5296d76

Browse files
Saksham20JuliaSprenger
authored andcommitted
filesize check
1 parent 2c863ff commit 5296d76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

neo/rawio/spikeglxrawio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ def scan_files(dirname):
248248
info['bin_file'] = str(bin_filename)
249249
info_list.append(info)
250250

251+
if bin_filename.stat().st_size != meta['fileSizeBytes']:
252+
raise Exception('.meta file has faulty value for .bin filesize')
253+
251254
return info_list
252255

253256

0 commit comments

Comments
 (0)