|
Re: Migration 6i to 10g WIN_API_DIRECTORY_LIST [message #304703 is a reply to message #304684] |
Thu, 06 March 2008 05:08 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
tiyise
Messages: 5 Registered: November 2007
|
Junior Member |
|
|
I found the solution to the problem:
FUNCTION ExistFile (pathFile in Varchar2) RETURN Boolean IS
ret Boolean;
BEGIN
Begin
if ( webutil_file.file_exists(pathFile) and webutil_file.file_is_readable(pathFile) and
not webutil_file.file_is_directory(pathFile) ) then
ret := true;
else
ret := false;
end if;
Exception
When No_data_found then
ret := False;
End;
--
return ret;
END;
|
|
|