After I downloaded the OpenEnterprises module, I got this error:

Warning: opendir(sites/all/modules/openenterprise-7.x-1.0-rc3 [function.opendir]: falied to oper dir:Permission denied in file_scan_directory() (line 2035 of /home/websited/public_html/drupal/includes/file.inc).

I found the file.inc file and line 2035 (the first line below), but I'm not sure what to change.

if (is_dir($dir) && $handle = opendir($dir)) {
while (FALSE !== ($filename = readdir($handle))) {
if (!preg_match($options['nomask'], $filename) && $filename[0] != '.') {
$uri = "$dir/$filename";
$uri = file_stream_wrapper_uri_normalize($uri);
if (is_dir($uri) && $options['recurse']) {
// Give priority to files in this folder by merging them in after any subdirectory files.
$files = array_merge(file_scan_directory($uri, $mask, $options, $depth + 1), $files);
}

Any suggestions?