open_dash_cam_android icon indicating copy to clipboard operation
open_dash_cam_android copied to clipboard

Bug in Util#getFolderSize

Open clementkng opened this issue 2 years ago • 0 comments

This method only works for directories with one level of files underneath. If a file is passed in, or a directory with another directory nested, then this not actually return the size of directory in megabytes. The code is relying on the division in the return statement occuring twice to convert from bytes to megabytes, but that only works for directories with one level of files underneath.

clementkng avatar Mar 11 '22 07:03 clementkng