From 8178b801fbb0262f8acad3f3cfb9af7388506c02 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Wed, 26 May 2021 23:36:09 +0300 Subject: [PATCH] fix: using mfv_existfolder macro in mv_createfolder to save requests --- viya/mv_createfolder.sas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/viya/mv_createfolder.sas b/viya/mv_createfolder.sas index b6919ed..3ff7279 100644 --- a/viya/mv_createfolder.sas +++ b/viya/mv_createfolder.sas @@ -27,6 +27,8 @@ @li mf_getuniquelibref.sas @li mf_isblank.sas @li mf_getplatform.sas + @li mfv_existfolder.sas + **/ @@ -42,6 +44,11 @@ %end; %else %let dbg=*; +%if %mfv_existfolder(&path)=1 %then %do; + %put &sysmacroname: &path already exists; + %return; +%end; + %local oauth_bearer; %if &grant_type=detect %then %do; %if %symexist(&access_token_var) %then %let grant_type=authorization_code;