Changeset 1925:68fd6debe77c
- Timestamp:
- Apr 11, 2020, 7:24:57 PM (9 months ago)
- Branch:
- default
- histedit_source:
- 7f3ba32cfa16bef74c388c6ea2ecc963c06edc3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ftputil/host.py
r1924 r1925 90 90 # Set default time shift (used in `upload_if_newer` and 91 91 # `download_if_newer`). 92 self. set_time_shift(0.0)92 self._time_shift = 0.0 93 93 # Don't use `LIST -a` option by default. If the server doesn't 94 94 # understand the `-a` option and interprets it as a path, the … … 321 321 The time shift is measured in seconds. 322 322 """ 323 # Implicitly set via `set_time_shift` call in constructor 324 # pylint: disable=attribute-defined-outside-init 325 self._time_shift = time_shift 323 old_time_shift = self.time_shift() 324 if time_shift != old_time_shift: 325 # If the time shift changed, all entries in the cache will have 326 # wrong times with respect to the updated time shift, therefore 327 # clear the cache. 328 self.stat_cache.clear() 329 self._time_shift = time_shift 326 330 327 331 def time_shift(self):
Note: See TracChangeset
for help on using the changeset viewer.