Basically what he says on tin:
if(is_dir($dir))
echo $dir . " is a directory\n";
if(is_readable($dir))
echo $dir . " is readable\n";
if($this->handle = opendir($dir))
echo $dir . " opened\n";
Return:
\\ HTPC \ MOVIES is a directory
\\ HTPC \ MOVIES is open
What is strange? I can iterate over files in a directory, but apparently it is not readable. It doesn't make any difference, as if I said I can still read the files, but I'm just a little weird.
Does anyone have any thoughts?
source
share