You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stuart Roebuck <st...@adolos.co.uk> on 2001/07/05 11:19:08 UTC
IOUtils.getFullFilename getCanonicalPath usage
IOUtils.getFullFilename is defined as:
> public static String getFullFilename(File file) {
> try {
> return file.getCanonicalPath();
> } catch (Exception e) {
>
> Hierarchy.getDefaultHierarchy().getLoggerFor("cocoon").debug("IOUtils.getFullFilename"
> , e);
> return file.getAbsolutePath();
> }
> }
If getAbsolutePath is defined an acceptable fallback do we need to call
the 'expensive' getCanonicalPath method at all?
Stuart.
-------------------------------------------------------------------------
Stuart Roebuck stuart.roebuck@adolos.com
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS <http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org