Re: Renaming a Directory

From: Date: Wed, 09 Sep 2009 12:09:00 +0000
Subject: Re: Renaming a Directory
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-297810@lists.php.net to get a copy of this message
Nope, nothing wrong with that at all. Just didn't think of it! Thanks! Floyd On Sep 8, 2009, at 5:46 PM, Eddie Drapkin wrote:
On Tue, Sep 8, 2009 at 5:39 PM, Floyd Resler<fresler@adex-intl.com> wrote:
How can I rename a directory with files in it? The rename function gives me a "directory not empty" error. I know I could do it be creating the directory, moving the files, and then deleting the old one. Is there an easier way? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Is there something wrong with system("mv $oldName $newName"); ?


« previous php.general (#297810) next »