you can do this:
$bases = $this->source->getBases('');
well, but this branch is very experimental!
I would try MIGX from master-branch on revo 2.1.5 for now.
This has also the functionality for autoCreate resourcefolders for MIGX-TVs.
This is no longer possible this way in revo 2.2 with its mediasources.
Thats the reason I made the pull-request for dynamic mediasources and the res_id placeholder for pathes.
Perhaps in a future version I will add an upload-button to MIGX to upload images to its dynamic mediasource-folder and fill the items automatically with uploaded files from this folder.
But I'm waiting, if something like dynamic mediasources will be released. If not, I have to find another way to get that functionality into MIGX.
[Edit]
If you want to try the autocreatefolder-option on revo2.2(my dynamicSource2-branch) you need first create a mediasource with dynamic pathes like:
assets/images/[[+mediasource.res_id]]/
[ed. note: Bruno17 last edited this post 12 years, 4 months ago.]