mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
don't read too much
This commit is contained in:
@@ -1808,7 +1808,7 @@ class ICM(Binary):
|
||||
dataset.blurb = 'file purged from disk'
|
||||
|
||||
def sniff(self, dataset):
|
||||
line = open(dataset).readline()
|
||||
line = open(dataset).read(100)
|
||||
if '>ver = ' in line and 'len = ' in line and 'depth = ' in line and 'periodicity =' in line and 'nodes = ' in line:
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user