Cyberduck Mountain Duck CLI

Changeset 42497


Ignore:
Timestamp:
Aug 28, 2017 11:40:22 AM (11 months ago)
Author:
automerge
Message:

Merge pull request #1040 in ITERATE/cyberduck from bugfix/CD-2552-attributes to master

  • commit '9a1869591d2ab3c5758169e38f60917902ce7d28': Set file modified date to src_last_modified_millis if found, follow up fixes to CD-2552
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/backblaze/src/main/java/ch/cyberduck/core/b2/B2ObjectListService.java

    r41909 r42497  
    4141import synapticloop.b2.response.B2FileInfoResponse;
    4242import synapticloop.b2.response.B2ListFilesResponse;
     43
     44import static ch.cyberduck.core.b2.B2MetadataFeature.X_BZ_INFO_SRC_LAST_MODIFIED_MILLIS;
    4345
    4446public class B2ObjectListService implements ListService {
     
    149151        final long timestamp = response.getUploadTimestamp();
    150152        attributes.setCreationDate(timestamp);
    151         attributes.setModificationDate(timestamp);
     153        if(response.getFileInfo().containsKey(X_BZ_INFO_SRC_LAST_MODIFIED_MILLIS)) {
     154            attributes.setModificationDate(Long.valueOf(response.getFileInfo().get(X_BZ_INFO_SRC_LAST_MODIFIED_MILLIS)));
     155        }
     156        else {
     157            attributes.setModificationDate(timestamp);
     158        }
    152159        attributes.setVersionId(response.getFileId());
    153160        switch(response.getAction()) {
Note: See TracChangeset for help on using the changeset viewer.
swiss made software