Delete the unwanted files and folders from destination folder as compared to source folder

Posted by OM The Eternity on Stack Overflow See other posts from Stack Overflow or by OM The Eternity
Published on 2010-05-08T05:51:57Z Indexed on 2010/05/08 5:58 UTC
Read the original article Hit count: 201

Filed under:
|

I am using PHP and I need to script something like below:

I have to compare two folder structure and with reference of source folder I want to delete all the files/folders present in other destination folder which do not exist in reference source folder, how could i do this?

© Stack Overflow or respective owner

Related posts about php

Related posts about unlink