[jcifs] Property Inconsistencies (Davenport)
Michael B Allen
mba2000 at ioplex.com
Tue Feb 10 02:28:11 GMT 2004
Mike McDonald said:
> When I call SmbFile.length() on the share, it returns 98626961408 (in this
> case). When I call it on a directory, it returns 0.
You mean the share returns 0 and the directory returns a valid value.
Whatever the case it is a well known phenomenon that the NetServerEnum and
NetShareEnum operations do not always return complete information in which
case some fields will be zero. This is passed through jCIFS and Davenport
which manifests itself in the error that you're observing.
As for a fix, I do not plan to do anything to jCIFS as I do not believe
there is any way currently to retrieve this information. Perhaps Davenport
More information about the jcifs