|
84760 packages online
|
|
|
|
|
|
No screenshot available
|
|
When TrapDoor receives a file, the date of this file is set to the time
it was received. This can be inconvenient in many cases. Fortunately
TrapDoor does store the original creation time in a filenote it makes
for the file. The TrapDoor manual has this to say:
When a file is received with Zmodem (or any of its
derivatives), the original date and time of the file is also
transferred and will be stored in a "Time" tag by TrapDoor. The
number behind the "Time" tag is a hexadecimal unix timestamp
(seconds since 1.1.1970, midnight).
So all we need to do is read all the files in the inbound directory for
these filenotes, and if we can find the "Time" tag, we can use it to
determine the real creation time of the file.
This program does just that, and - using the DOS "SetDate" command (thus
making this a 2.0+ only program - will drop the datestamp into the file.
PlutFileDate keeps an in-shell display of what's being done. Please
ensure the DOS program SetDate is in a search path somewhere so
PlutFileDate can do its stuff!
Sometimes a file will not have a "Time" tag. In this case, no action is
taken. Such files not only include files without comments, but files
that TrapDoor has had to rename, ie BUMPED filenames. These files don't
get the "Time" tag - the original filename is stored in the FileNote
instead.
If the file has a particularly long filename, TrapDoor sometimes
truncates the "Time" tag. If we cannot read the full 8 characters of
this string, again no action is taken.
Mea Culpa, Peter Deane
c8345041@cc.newcastle.edu.au
|
Contents of comm/fido/pltfdt03.lha
PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 16533 25380 65.1% -lh5- aae2 Mar 18 1995 PlutFileDate
[generic] 1852 4294 43.1% -lh5- 810a Mar 18 1995 PlutFileDate.doc
[generic] 2103 5692 36.9% -lh5- 0b74 Mar 18 1995 PlutFileDate.LST
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 3 files 20488 35366 57.9% Mar 21 1995
|
|
|
|
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminetaminet net> |