Hello,
I noticed that on Windows the file plugin returns something like N:\abc.txt when using getAbsoluteFile(). My understanding is that an absolute path looks like \server\share.… This is a very important feature for handling files since you can never be sure how a user maps a server.
Is this a bug or am I missing something?
Thanks
Patrick
no an absolute path is a path that has (under windows) driveletter:\ in front of it or \servername\
so if a user is selecting a file through its mapped drive then that would be the absolute path.
see:
http://java.sun.com/j2se/1.4.2/docs/api … olutePath()
http://java.sun.com/j2se/1.4.2/docs/api … sAbsolute()
Ok, and is there a way to figure out \server... if I get N:...?
Thanks
Patrick
i don’t think so
Windows hides this from us (or java doesn’t know that)
At least i haven’t seen any method in File or its friends that would give you that info.