[opencms-dev] set last modified of a file
Olli Aro
olli_aro at yahoo.co.uk
Wed Apr 28 09:21:00 CEST 2004
After consulting the API documentation quickly it seems that code like below
should work: -
com.opencms.file.CmsObject oFile = cmsa.getCmsObject(); // cms is the
JspActionElement instance.
oFile.touch( "/dir/dir/file.html", System.currentTimeMillis() ,false);
oFile.unlockResource( "/dir/dir/file.html");
Regards,
Olli
_____
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Arno Illmann, e-Commerce Team SO
Sent: 28 April 2004 07:07
To: 'opencms-dev at opencms.org'
Subject: AW: [opencms-dev] set last modified of a file
Unlocking the resource?
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040428/945b0cac/attachment.htm>
More information about the opencms-dev
mailing list