Error Handling -pls advice

Dear friends,

I am using the below command in my unix script
-----------------------------------------------
File_Name=`ls $CTRY*$DATE_SUFFIX*zip` --> Command-1

.....
if [ -f $FTP_DIR/$File_Name ]
then
unzip -a $File_Name -d $CTRY_DIR/$CTRY
else
echo "File for $CTRY dated $DATE_SUFFIX does not exist in $FTP_DIR"
fi

But I get the following error message printed on UNIX screen , which I want to get rid off. I think this error message appears owing to failure of ls command in COmmand-1 as stated above

Error message printed on screen is
KE*20080711*zip not found

CAn you please advice how to get rid of this messages to be printed on screen. Instaed can we move such errors to temp files

Regards
Suresh

First, there is the assignment of the filename variable.

> mfilename=$(ls z52075.*.zip)
> echo $mfilename
z52075.per.files.zip
> mfilename=$(ls z52075.*.zip2)
ls: cannot access z52075.*.zip2: No such file or directory
> mfilename=$(ls z52075.*.zip2 2>/dev/null)
> echo $mfilename

>

Above, the first set the filename which was found from the ls command. See my echo of the variable. I then try to set to a file I know the ls will not find - and you can see the unix error condition returned. Tried agin; and I added the error handling. Note my second echo returns nothing.

Second, you are checking for -f or ordinary file. Is a zip file ordinary? I think I would be doing a -s to see if the file has non-zero length.

Thanks for inputs,
Using -f , actually I am checking for presence of the zip file
If present , then only I proceed further