I resolved this by using the following code. It may not be the best way to do it, but it's how I got it working!
function recursiveGlob($dir, $ext) {
foreach ($globFiles as $file) {
$brandpath = dirname(dirname($file));
$brandname = substr( $brandpath, strrpos( $brandpath, '/' )+1 );
}
}
recursiveGlob('/home/website/dataupload', 'xml');
It works great, and while I'm sure it could've been done differently, it serves it's purpose! :-)