in reply to Re^3: Problem unlinking files
in thread Problem unlinking files
Regarding altering the contents of an array while iterating over it...point taken...that was a bad suggestion.
Regarding the file existence test...the poster didn't really indicate what kind of test was being performed. Since no code was provided, I think we can only assume that he/she has reasons for performing the test and possibly deleting the file based off the results.