mdelete power

hi to all!

im using hp-ux 10.2

is it posible for the mdelete command to execute on the root directory if it did not find any file on the specified sub-directory?

this is my sample script

USER=root
PASSWD=root
cd /u01/app/oralog/arch
ftp -n 192.119.10.3
user $USER $PASSWD
prompt
binary
cd /u01/app/oracle/product/10.2.0/dbs/arch
mdelete *
mput *
quit

Thanks...

Yep, if /u01/app/oralog/arch does not exist, the ftp script will remove all files it found in root's home dir (often /)
Safer would be to run mdelete /u01/app/oralog/arch/*

the directory exist. what i mean is if it doesnt find any files in the specified directory, does this means it will automatically go to the root and delete every file inside it? (based from the script provided)