Changeset 1575:87c82eae29b6


Ignore:
Timestamp:
Oct 4, 2014, 5:46:18 PM (7 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
amend_source:
d585d5d93f6255895c96d05365cfca066393a220
Message:
Added comment on pre-epoch datetimes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/file_transfer.py

    r1564 r1575  
    1 # Copyright (C) 2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2013-2014, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    120120    before the first possible actual target modification time.
    121121    """
     122    # We don't need special handling for pre-epoch datetimes since
     123    # they always result in a modification datetime of 0.0, so the
     124    # following algorithm will insist that the file is retransmitted.
    122125    return (source_file.mtime() + source_file.mtime_precision() >=
    123126            target_file.mtime())
Note: See TracChangeset for help on using the changeset viewer.