One try/catch in get_size function to catch more possible problems
Fix method to know if a dir is empty or not