tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@betaversion.org>
Subject Re: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources FileDirContext.java
Date Fri, 22 Jun 2001 20:43:30 GMT
Quoting glenn@apache.org:

> glenn       01/06/22 13:20:54
> 
>   Modified:    catalina/src/share/org/apache/naming/resources
>                         FileDirContext.java
>   Log:
>   Fix path for windows file separator
>   @@ -843,6 +842,8 @@
>         * @param name Normalized context-relative path (with leading
> '/')
>         */
>        protected File file(String name) {
>   +	if( File.separatorChar == '\\' )
>   +            name = name.replace('/',File.separatorChar);
>    
>            File file = new File(base, name);
>            if (file.exists() && file.canRead()) {

Is this really needed ?
I think this should be abstracted by the new File call.

Remy

Mime
View raw message