Debt Consolidation - Debt Consolidation - Record Songs for free - Debt Consolidation - ID card

PDA

View Full Version : php rename used to merge folders


Silver89
Jul 5th 2009, 9:10 am
Hi,

If I have the following directory structure:

project/Part 1
project/Part 2
project/Part 3

and have the following example files

project/Part 1/1.avi
project/Part 2/2.avi
project/Part 3/3.avi

and then perform this php rename query:


<?php
rename("project/Part 2", "project/Part 1");
rename("project/Part 3", "project/Part 1");
?>


Then will it just merge the two folders? Also if any of the files exist with the same name will they just be overwritten?

Thanks

Wrighty
Jul 5th 2009, 1:37 pm
Why don't you try it? :)

Silver89
Jul 5th 2009, 3:51 pm
I've done it now, had 580GB of uploaded files so didn't want to risk it.