in reply to Re^2: Dynamic detection of a folder based on the location given
in thread Dynamic detection of a folder based on the location given

Maybe you just want to detect whether a folder exists? The -X operators are good for that, for example -d $folderpath.