in reply to execution problem if dir name has space in it's name
You're probably looking for this
$glob_path = qq("$LogDir/${Prefix}*"); [download]
Enclose the directory name in double quotes