caching of lastmodified, was: [jcifs] Equivalent for

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


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).


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 -- -- tel:+492512807760

More information about the jcifs mailing list