fixed case where if the folder was empty (no hidden folders or anything), it would freak out and blow up - oops.