Re: Renaming a Directory
| From: | Eddie Drapkin | Date: | Tue, 08 Sep 2009 21:46:50 +0000 |
| Subject: | Re: Renaming a Directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297798@lists.php.net to get a copy of this message | ||
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"); ?