fixed issue with directories causing warnings/errors due to the fact that NSFileManager reports their size as >0