Basically what it says on the 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";
Returns:
\\HTPC\MOVIES is a directory
\\HTPC\MOVIES opened
Which is wierd? I can iterate through the files in the directory but apparently it is not readable. It doesn’t really matter as like I said I can still read the files, however I just find it a little odd.
Does anyone have any thoughts?
It seems it was a permission error. Assigned to that particular folder was a homegroup. The homegroup wasn’t actually being used on the network. Upon removing the homegroup and re-adding the users group is_readable returned true. Still strange how opendir returned true but is_readable not. You surely would expect something that is not readable to fail upon open.
Thanks for your help guys.