this logic should be wrapped in a separate function, and I'd also move the directory changing logic in as part of `download_set`, so it just creates the file in the new directory.