Cyberduck Mountain Duck CLI

Changeset 43153


Ignore:
Timestamp:
Nov 3, 2017 1:01:53 PM (4 years ago)
Author:
dkocher
Message:

Fix name.

Location:
shelves/Tomas_Celaya
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shelves/Tomas_Celaya

    • Property subgit:lock changed from commit:7b7d83c16d2c1d9a620fa6fdbd1b55c5e112b9e4 timestamp:2017-11-06T08:57:21.800 to commit:0e60cfeca55a144898597a3b112c424d45b66724 timestamp:2017-11-06T08:57:23.582
  • shelves/Tomas_Celaya/manta/src/main/java/ch/cyberduck/core/manta/MantaListService.java

    r43135 r43153  
    2121import ch.cyberduck.core.ListService;
    2222import ch.cyberduck.core.Path;
    23 import ch.cyberduck.core.PathAttributes;
    2423import ch.cyberduck.core.exception.AccessDeniedException;
    2524import ch.cyberduck.core.exception.BackgroundException;
     25
     26import org.apache.commons.io.FilenameUtils;
    2627
    2728import java.io.IOException;
     
    6566        while(objectsIter.hasNext()) {
    6667            MantaObject o = objectsIter.next();
    67             final PathAttributes attr = adapter.convert(o);
    68             final Path path = new Path(
    69                     directory,
    70                     attr.getDisplayname(),
    71                     EnumSet.of(o.isDirectory() ? Path.Type.directory : Path.Type.file),
    72                     attr);
    73 
    74             children.add(path);
     68            final Path file = new Path(directory, FilenameUtils.getName(o.getPath()),
     69                EnumSet.of(o.isDirectory() ? Path.Type.directory : Path.Type.file), adapter.convert(o)
     70            );
     71            children.add(file);
    7572            listener.chunk(directory, children);
    7673        }
Note: See TracChangeset for help on using the changeset viewer.