ewels / Labrador

A web based tool to manage and automate the processing of publicly available datasets.
https://www.bioinformatics.babraham.ac.uk/projects/labrador/
GNU General Public License v3.0
37 stars 9 forks source link

getSize() Issues #17

Open darogan opened 7 years ago

darogan commented 7 years ago

@ewels I have uncovered an issue with the getSize function in files.php (ln 191). Its giving the following error for some files:

PHP Fatal error: Uncaught RuntimeException: SplFileInfo::getSize(): stat failed for XXXX

The files look fine and open as expected on Linux, so I don't know why certain files are failing.

I fixed the error by swapping out $size = $file->getSize(); for $size = filesize($file);

I'll submit a PR when I have some more time

ewels commented 7 years ago

Strange, thanks @darogan! I look forward to the PR.