Page 1 of 1

Detecting sharing violations

Posted: Mon Sep 14, 2009 5:07 am
by CentaurxPRC
HI. I am using mount.cifs under linux to mount a share on XP. I am then recursively descending that share looking at each file as I go. This is using readdir() and when all the files have been read it returns false. Sometimes I get errors and having used wireshark to trace what is happening I see there is a sharing violation being reported but this does not get reported back to PHP other than a "false" which is of course identical to that returned when gettinging to the end of a readdir list. Does anyone know how I can detect errors more reliably so I can respond differently to a share violation problem? Thanks