Conditional sub-directory for download