[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Mon Dec 27 10:34:20 2004 -->
- <!--x-from-r13: qnafpbk ng zvaqfcevat.pbz (Rnaal Qbk) -->
- <!--x-message-id: 1104161471.2933.22.camel@pip -->
- <!--x-reference: 1104136658.8557.2.camel@blue --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] modify file creation/modification time -->
- <li><em>date</em>: Mon Dec 27 10:34:20 2004</li>
- <li><em>from</em>: danscox at mindspring.com (Danny Cox)</li>
- <li><em>in-reply-to</em>: <1104136658.8557.2.camel@blue></li>
- <li><em>references</em>: <1104136658.8557.2.camel@blue></li>
- <li><em>subject</em>: [ale] modify file creation/modification time</li>
On Mon, 2004-12-27 at 03:37 -0500, Jim Popovitch wrote:
> Is there a way, preferably w/ perl, to change the timestamp of a file?
> Specifically, I would like to modify a directory of files, but not
> change any of the modification timestamps.
See utime (man perlfunc). It should work on a directory also.
By the way, the ctime member of the inode isn't a creation time. It's
a last modified time of the metadata (permissions, modification time,
access times). MS-DOS has a create time, which gets mapped within Samba
to the ctime, I think, but that's it. Newer filesystems such as Reiser
4 may well have a create time, but traditional UNIX never has.
--
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.
Danny
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00862" href="msg00862.html">[ale] modify file creation/modification time</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00871.html">[ale] OT: Free MP3 Jukebox ?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00873.html">[ale] quick way to raise DTR on serial port?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00862.html">[ale] modify file creation/modification time</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00863.html">[ale] Kmail</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00872"><strong>Date</strong></a></li>
<li><a href="threads.html#00872"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>