On 4/21/2016 11:33 AM, Leo Donahue wrote:
Chris,

On Apr 21, 2016 9:15 AM, "Christopher Schultz" <ch...@christopherschultz.net>
wrote:

I don't have a Windows machine handy right this minute, but from my
previous experience, "C:" means "the current working directory on the C
drive, from this process's perspective.

For instance:

D:\> DIR C:\
...
Program Files
Windows
...

D:\> DIR C:
...
Program Files
Windows
...

D:\> CD C:\Windows
D:\> DIR C:
...
System
System32
...

So I would think that using "C:" (with no trailing path) from Java would
behave the same way: the current working directory *on that drive* would
be the one used.

I would expect it to work just like "." on *NIX.

-chris

--------------------------------------------------------------

On Windows 7 from a command prompt:

C:\downloads dir c:
Shows contents of downloads

C:\downloads dir c:\
Shows contents of c drive

Yes, that's all well-known on windows. The question was, how does the Java File object handle it? Does it give the correct result as above? And going back to the original question, how should these paths be normalized?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to