[jcifs] Equivalent for java.io.File.getCanonicalPath()

Julian Reschke julian.reschke at gmx.de
Wed Feb 4 11:25:15 GMT 2004

Michael B Allen wrote:

> Julian Reschke said:
>>Note that for java.io.File, getCanonicalPath changes it's value
>>depending on whether a remote file with the same (or "similar") name
> Ok, now I understand. And I agree the behavor you describe would be
> better. But I believe it would require walking the path and resolving each
> component. I'll look into it but if canonicalization means N extra round
> trips to the server where N is the number of components in the path it may
> not be very practical. There might be a CIFS command to assist with this.

Yes. In case it turns out to be expensive, it could be made available 
through a new method on SmbFile (in addition to getCanonicalPath).

> The other two issues look like they might be real. The setLastModified
> code may need some adjustment to consider TZ, DST, and attribute caching.
> I'll look at them closer.



<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

More information about the jcifs mailing list