I have directory with huge number of directories (names by date artwork
requested and client id number) with clients artwork.
by accident, directory was opened by FrontPage and now in each directory
is created _vti_cnf directory with copy of the artwork.
i have to delete all those '_vti_cnf'
rm -r directoryname will recursively remove the directory and
everything in it
-Original Message-
From: Afan Pasalic [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 12:31 PM
To: php-general
Subject: [PHP] deleting directories
I have directory with huge number of directories
Afan Pasalic wrote:
I have directory with huge number of directories (names by date artwork
requested and client id number) with clients artwork.
by accident, directory was opened by FrontPage and now in each directory
is created _vti_cnf directory with copy of the artwork.
i have to delete all
21, 2004 12:31 PM
To: php-general
Subject: [PHP] deleting directories
I have directory with huge number of directories (names by date artwork
requested and client id number) with clients artwork.
by accident, directory was opened by FrontPage and now in each directory
is created _vti_cnf
Jesse Castro wrote:
rm -r directoryname will recursively remove the directory and
everything in it
snip
He's on a Windows system, that won't work. As a side note, on *nix
based systems, rm -rf dir would be better suited so that it doesn't
prompt for conformation on each file/directory.
--
John
directories are on Linux server and Windows System Commands will not
work there.
I forgot to make a note:
warning shows c:\ap\artwork\ap.php because I test it locally, n windows
machine. but directories are on Linux box
sorry for misleading you guys.
John Nichel wrote:
Afan Pasalic wrote:
I
Afan Pasalic wrote:
directories are on Linux server and Windows System Commands will not
work there.
I forgot to make a note:
warning shows c:\ap\artwork\ap.php because I test it locally, n windows
machine. but directories are on Linux box
sorry for misleading you guys.
Then that's a bit
Sorry John, but I forgot to write that detail: I test locally on Win
machine, but directories are on Linux server.
Afan
John Nichel wrote:
Jesse Castro wrote:
rm -r directoryname will recursively remove the directory and
everything in it
snip
He's on a Windows system, that won't work. As a side
its pretty easy to make your function recursive, all you need to do is
test if the current file is a directory (if (is_dir($file)){run
function} else if (eregi('/_vti_cnf/',$file))), then delete all files
as long as they are located in a _vti_cnf directory. And I'm sure
I've done something wrong
Hi,
I'm trying to delete non-empty directories. I'm using a windows 2000 server.
I have a script that seems to be trying to delete the directories as it should but it
can't delete the directories because it does not have permission.
The script runs CHMOD on the direcory to make sure it has
On Tuesday 02 April 2002 16:42, Philip Jeffs wrote:
Hi,
I'm trying to delete non-empty directories. I'm using a windows 2000
server. I have a script that seems to be trying to delete the directories
as it should but it can't delete the directories because it does not have
permission. The
11 matches
Mail list logo