finally works; fsize() should be rewritten to take any path as a parameter, though (i.e. include provisions for ./ and ../ and non-directory paths _inside_ the function itself, instead of being selective as to where it's _called_ in other parts of the program)