On 2 Jan 2006, at 21:59, anton huber wrote:

Hi Mark!

  ad 2.:
     length() -> fileObject.getContent().getSize()
     isFile() -> fileObject.getType()==FileType.FILE
     isDirectory() -> fileObject.getType()==FileType.FOLDER
getLastModified() -> fileObject.getContent ().getLastModifiedTime()


Note that the latter will not work if you get a URL from the fileObject and it is a local file system as in this example.

i.e.

URL u = fileObject.getUrl();
long lastmod = u.openConnection().getLastModified()

... lastmod is always zero. This has been raised as a bugzilla issue.

~ ~ ~
Marc Palmer ([EMAIL PROTECTED])
Consultant/Analyst
AnyWare Ltd.
http://www.anyware.co.uk/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to