Changes between Version 1 and Version 2 of Ticket #35868


Ignore:
Timestamp:
Oct 26, 2024, 7:23:09 PM (4 weeks ago)
Author:
Brett G
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35868 – Description

    v1 v2  
    66
    77{{{#!python
    8             try:
    9                 # When was the target file modified last time?
    10                 target_last_modified = self.storage.get_modified_time(prefixed_path)
    11             except (OSError, NotImplementedError, AttributeError):
    12                 # The storage doesn't support get_modified_time() or failed
    13                 pass
    14             else:
    15                 try:
    16                     # When was the source file modified last time?
    17                     source_last_modified = source_storage.get_modified_time(path)
    18                 except (OSError, NotImplementedError, AttributeError):
    19                     pass
     8try:
     9    # When was the target file modified last time?
     10    target_last_modified = self.storage.get_modified_time(prefixed_path)
     11except (OSError, NotImplementedError, AttributeError):
     12    # The storage doesn't support get_modified_time() or failed
     13    pass
     14else:
     15    try:
     16        # When was the source file modified last time?
     17        source_last_modified = source_storage.get_modified_time(path)
     18    except (OSError, NotImplementedError, AttributeError):
     19        pass
    2020}}}
    2121
Back to Top