mirror of https://github.com/BOINC/boinc.git
Merge pull request #3275 from BOINC/dpa_subdirs
client: if physical name of download file contains /, create subdirs
This commit is contained in:
commit
15ffc98a3b
|
@ -61,6 +61,12 @@ FILE_XFER::~FILE_XFER() {
|
||||||
int FILE_XFER::init_download(FILE_INFO& file_info) {
|
int FILE_XFER::init_download(FILE_INFO& file_info) {
|
||||||
is_upload = false;
|
is_upload = false;
|
||||||
fip = &file_info;
|
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));
|
get_pathname(fip, pathname, sizeof(pathname));
|
||||||
if (fip->download_gzipped) {
|
if (fip->download_gzipped) {
|
||||||
safe_strcat(pathname, ".gzt");
|
safe_strcat(pathname, ".gzt");
|
||||||
|
|
Loading…
Reference in New Issue