Cyberduck Mountain Duck CLI

Changeset 42874


Ignore:
Timestamp:
Oct 10, 2017 2:47:55 PM (2 years ago)
Author:
dkocher
Message:

Merge remote-tracking branch 'origin/master'

Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/core/src/main/java/ch/cyberduck/core/PathAttributes.java

    r41204 r42874  
    130130     */
    131131    private String directoryId;
     132
     133    private Map<String, String> custom = Collections.emptyMap();
    132134
    133135    public PathAttributes() {
     
    440442    }
    441443
     444    public Map<String, String> getCustom() {
     445        return custom;
     446    }
     447
     448    public void setCustom(final Map<String, String> custom) {
     449        this.custom = custom;
     450    }
     451
    442452    @Override
    443453    public boolean equals(Object o) {
  • trunk/dracoon/src/main/java/ch/cyberduck/core/sds/SDSAttributesFinderFeature.java

    r42863 r42874  
    3232
    3333public class SDSAttributesFinderFeature implements AttributesFinder {
     34
     35    public static final String KEY_CNT_DOWNLOADSHARES = "count_downloadshares";
     36    public static final String KEY_CNT_UPLOADSHARES = "count_uploadshares";
    3437
    3538    private final SDSSession session;
  • trunk/dracoon/src/main/java/ch/cyberduck/core/sds/SDSListService.java

    r42845 r42874  
    3434
    3535import java.util.EnumSet;
     36import java.util.HashMap;
     37import java.util.Map;
    3638
    3739public class SDSListService implements ListService {
     
    5658            do {
    5759                nodes = new NodesApi(session.getClient()).getFsNodes(StringUtils.EMPTY, null, 0,
    58                         Long.parseLong(new SDSNodeIdProvider(session).getFileid(directory, new DisabledListProgressListener())),
    59                         null, null, null, offset, chunksize);
     60                    Long.parseLong(new SDSNodeIdProvider(session).getFileid(directory, new DisabledListProgressListener())),
     61                    null, null, null, offset, chunksize);
    6062                for(Node node : nodes.getItems()) {
    6163                    final PathAttributes attributes = feature.toAttributes(node);
     
    8082                            }
    8183                    }
     84                    final Map<String, String> custom = new HashMap<>();
     85                    custom.put(SDSAttributesFinderFeature.KEY_CNT_DOWNLOADSHARES, String.valueOf(node.getCntDownloadShares()));
     86                    custom.put(SDSAttributesFinderFeature.KEY_CNT_UPLOADSHARES, String.valueOf(node.getCntUploadShares()));
     87                    attributes.setCustom(custom);
    8288                    final Path file = new Path(directory, node.getName(), type, attributes);
    8389                    children.add(file);
Note: See TracChangeset for help on using the changeset viewer.
swiss made software