1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-11 06:24:35 +00:00

Merge pull request #101 from sasjs:fix_copyfolder

fix: correct target path. Closes #100
This commit is contained in:
Allan Bowe
2021-12-02 13:29:24 +00:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -2779,7 +2779,8 @@ run;
/* create folders and copy content */
data _null_;
set work.&tempds;
filepath2="&target/"!!substr(filepath,%length(&source)+2);
if _n_ = 1 then dpos+sum(length(directory),2);
filepath2="&target/"!!substr(filepath,dpos);
if file_or_folder='folder' then call execute('%mf_mkdir('!!filepath2!!')');
else do;
length fref1 fref2 $8;

View File

@@ -55,7 +55,8 @@
/* create folders and copy content */
data _null_;
set work.&tempds;
filepath2="&target/"!!substr(filepath,%length(&source)+2);
if _n_ = 1 then dpos+sum(length(directory),2);
filepath2="&target/"!!substr(filepath,dpos);
if file_or_folder='folder' then call execute('%mf_mkdir('!!filepath2!!')');
else do;
length fref1 fref2 $8;