File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,19 @@ function object_metadata($bucketName, $objectName)
77
77
printf ('Content-type: %s ' . PHP_EOL , $ info ['contentType ' ]);
78
78
}
79
79
if (isset ($ info ['temporaryHold ' ])) {
80
- printf (" Temporary hold: " . ($ info ['temporaryHold ' ] ? " enabled " : " disabled " ) . PHP_EOL );
80
+ printf (' Temporary hold: %s ' . PHP_EOL , ($ info ['temporaryHold ' ] ? ' enabled ' : ' disabled ' ) );
81
81
}
82
82
if (isset ($ info ['eventBasedHold ' ])) {
83
- printf (" Event-based hold: " . ($ info ['eventBasedHold ' ] ? " enabled " : " disabled " ) . PHP_EOL );
83
+ printf (' Event-based hold: %s ' . PHP_EOL , ($ info ['eventBasedHold ' ] ? ' enabled ' : ' disabled ' ) );
84
84
}
85
85
if (isset ($ info ['retentionExpirationTime ' ])) {
86
- printf ("retentionExpirationTime: " . $ info ['retentionExpirationTime ' ] . PHP_EOL );
86
+ printf ('Retention Expiration Time: %s ' . PHP_EOL , $ info ['retentionExpirationTime ' ]);
87
+ }
88
+ if (isset ($ info ['customTime ' ])) {
89
+ printf ('Custom Time: %s ' . PHP_EOL , $ info ['customTime ' ]);
87
90
}
88
91
if (isset ($ info ['metadata ' ])) {
89
- printf ('Metadata: %s ' , print_r ($ info ['metadata ' ], true ));
92
+ printf ('Metadata: %s ' . PHP_EOL , print_r ($ info ['metadata ' ], true ));
90
93
}
91
94
}
92
95
# [END storage_get_metadata]
You can’t perform that action at this time.
0 commit comments