caching of lastmodified, was: [jcifs] Equivalent for java.io.File.getCanonicalPath()

Julian Reschke julian.reschke at gmx.de
Wed Feb 4 10:25:32 GMT 2004


Hi,

some more thoughts:

The SmbFile object seems to cache a set of informations that File 
doesn't (this isn't necessarily a problem, but it's a difference that 
should be documented).

Consider:

SmbFile a = new SmbFile(x);
SmbFile b = new SmbFile(x);

a.exists() -> false
b.exists() -> false

SmbFileOutputStream os = new SmbFileOutputStream(a); os.close();

b.exists() -> false

If this is by design, it shouldbe mentioned somewhere, and it may make 
sense to consider an explicit refresh() method.


Regards, Julian

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


More information about the jcifs mailing list