This method returns an array of the directories formatted with each directory that uses the Perl special characters escaped.