Ignore:
Timestamp:
2023-01-28T19:01:43+13:00 (17 months ago)
Author:
davidb
Message:

Tested version of file-level document-version history (fldv-history) using the newer mv archives to archives_keepold and then hardlink-copy back to archiaves. Uses the newer technique of storing the timestamp in archives-timestamp.out, rather than rely on the timestamp of the file (which now changes due to the copy step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/FileUtils.pm

    r37187 r37194  
    3333
    3434use FileHandle;
     35use File::stat;
    3536
    3637# Greenstone modules
     
    7273
    7374#canRead
     75#getTimestamp
    7476#isSymbolicLink
    7577#modificationTime
     
    106108
    107109
     110## @function getTimestamp()
     111#
     112sub getTimestamp
     113{
     114    my ($filename) = @_;
     115   
     116    my $file_stat = stat($filename);
     117    my $mtime = $file_stat->mtime;
     118
     119    return $mtime;
     120}
     121## getTimestamp()
     122   
    108123## @function closeFileHandle
    109124#
Note: See TracChangeset for help on using the changeset viewer.