[fix] Fixes issue with reading size for bad paths Sometimes the localpath is empty (missing file) and the fullpath ends up being just a slash. `Filesystem::size()` then tries to get the total filesize of the `/` directory, which can cause PHP exec time and/or memory to run out. So, we check for a non-empty path and that something `is_file()` (instead of `file_exists()` which returns true for dirs).
[fix] Fixes issue with reading size for bad paths
Sometimes the localpath is empty (missing file) and the fullpath ends up
being just a slash. `Filesystem::size()` then tries to get the total
filesize of the `/` directory, which can cause PHP exec time and/or
memory to run out. So, we check for a non-empty path and that something
`is_file()` (instead of `file_exists()` which returns true for dirs).

zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,anthonyfuentes/hubzero-cms,anthonyfuentes/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms,zweidner/hubzero-cms,zooley/hubzero-cms,zooley/hubzero-cms,zooley/hubzero-cms,zweidner/hubzero-cms,zooley/hubzero-cms