mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Extract interface.
This commit is contained in:
@@ -15,6 +15,7 @@ package ch.cyberduck.core.brick;
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
import ch.cyberduck.core.DefaultPathAttributes;
|
||||
import ch.cyberduck.core.ListProgressListener;
|
||||
import ch.cyberduck.core.Path;
|
||||
import ch.cyberduck.core.PathAttributes;
|
||||
@@ -64,7 +65,7 @@ public class BrickAttributesFinderFeature implements AttributesFinder, Attribute
|
||||
|
||||
@Override
|
||||
public PathAttributes toAttributes(final FileEntity entity) {
|
||||
final PathAttributes attr = new PathAttributes();
|
||||
final PathAttributes attr = new DefaultPathAttributes();
|
||||
attr.setChecksum(Checksum.parse(entity.getMd5()));
|
||||
attr.setRegion(entity.getRegion());
|
||||
if(entity.getSize() != null) {
|
||||
|
||||
@@ -16,6 +16,7 @@ package ch.cyberduck.core.brick;
|
||||
*/
|
||||
|
||||
import ch.cyberduck.core.ConnectionCallback;
|
||||
import ch.cyberduck.core.DefaultPathAttributes;
|
||||
import ch.cyberduck.core.Path;
|
||||
import ch.cyberduck.core.PathAttributes;
|
||||
import ch.cyberduck.core.brick.io.swagger.client.ApiException;
|
||||
@@ -62,7 +63,7 @@ public class BrickCopyFeature extends BrickFileMigrationFeature implements Copy
|
||||
if(entity.getFileMigrationId() != null) {
|
||||
this.poll(client, entity);
|
||||
}
|
||||
return new Path(target).withAttributes(new PathAttributes(file.attributes()).setVault(null));
|
||||
return new Path(target).withAttributes(new DefaultPathAttributes(file.attributes()).setVault(null));
|
||||
}
|
||||
catch(ApiException e) {
|
||||
throw new BrickExceptionMappingService().map("Cannot copy {0}", e, file);
|
||||
|
||||
@@ -17,6 +17,7 @@ package ch.cyberduck.core.brick;
|
||||
|
||||
import ch.cyberduck.core.CaseInsensitivePathPredicate;
|
||||
import ch.cyberduck.core.ConnectionCallback;
|
||||
import ch.cyberduck.core.DefaultPathAttributes;
|
||||
import ch.cyberduck.core.Path;
|
||||
import ch.cyberduck.core.PathAttributes;
|
||||
import ch.cyberduck.core.brick.io.swagger.client.ApiException;
|
||||
@@ -60,7 +61,7 @@ public class BrickMoveFeature extends BrickFileMigrationFeature implements Move
|
||||
if(entity.getFileMigrationId() != null) {
|
||||
this.poll(client, entity);
|
||||
}
|
||||
return new Path(target).withAttributes(new PathAttributes(file.attributes()).setVault(null));
|
||||
return new Path(target).withAttributes(new DefaultPathAttributes(file.attributes()).setVault(null));
|
||||
}
|
||||
catch(ApiException e) {
|
||||
throw new BrickExceptionMappingService().map("Cannot rename {0}", e, file);
|
||||
|
||||
Reference in New Issue
Block a user