added ability to download directories of infinite depth