kopia lustrzana https://github.com/gaul/s3proxy
rodzic
8842c8ded2
commit
138abbd033
|
@ -323,9 +323,8 @@ public final class Nio2BlobStore extends BaseBlobStore {
|
||||||
String eTag = null;
|
String eTag = null;
|
||||||
var tier = Tier.STANDARD;
|
var tier = Tier.STANDARD;
|
||||||
var userMetadata = ImmutableMap.<String, String>builder();
|
var userMetadata = ImmutableMap.<String, String>builder();
|
||||||
// TODO: times
|
var lastModifiedTime = new Date(attr.lastModifiedTime().toMillis());
|
||||||
//var lastModifiedTime = new Date(attr.lastModifiedTime().toMillis());
|
var creationTime = new Date(attr.creationTime().toMillis());
|
||||||
//var creationTime = new Date(attr.creationTime().toMillis());
|
|
||||||
|
|
||||||
if (isDirectory) {
|
if (isDirectory) {
|
||||||
if (!attributes.contains(XATTR_CONTENT_MD5)) {
|
if (!attributes.contains(XATTR_CONTENT_MD5)) {
|
||||||
|
@ -424,6 +423,8 @@ public final class Nio2BlobStore extends BaseBlobStore {
|
||||||
.tier(tier)
|
.tier(tier)
|
||||||
.build();
|
.build();
|
||||||
blob.getMetadata().setContainer(container);
|
blob.getMetadata().setContainer(container);
|
||||||
|
blob.getMetadata().setCreationDate(creationTime);
|
||||||
|
blob.getMetadata().setLastModified(lastModifiedTime);
|
||||||
blob.getMetadata().setSize(size);
|
blob.getMetadata().setSize(size);
|
||||||
if (contentRange != null) {
|
if (contentRange != null) {
|
||||||
blob.getAllHeaders().put(HttpHeaders.CONTENT_RANGE, contentRange);
|
blob.getAllHeaders().put(HttpHeaders.CONTENT_RANGE, contentRange);
|
||||||
|
|
Ładowanie…
Reference in New Issue