It would be the same difference as:
opendir('/usr/home/foo/directory/');
opendir('/usr/home/foo/directory');
As far as I know either will work, though I don't know if that's a PHP feature or if it's dependent on the underlying operating system allowing the trailing slash (and therefore possibly not working in all environments).