Merge pull request #3275 from BOINC/dpa_subdirs

client: if physical name of download file contains /, create subdirs
This commit is contained in:
Rytis Slatkevičius 2019-09-18 13:42:39 +03:00 committed by GitHub
commit 15ffc98a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,12 @@ FILE_XFER::~FILE_XFER() {
int FILE_XFER::init_download(FILE_INFO& file_info) {
is_upload = false;
fip = &file_info;
// create subdirs of project dir if needed
//
int retval = boinc_make_dirs(fip->project->project_dir(), fip->name);
if (retval) return retval;
get_pathname(fip, pathname, sizeof(pathname));
if (fip->download_gzipped) {
safe_strcat(pathname, ".gzt");