title: How to get the updateTime for a "directory" blob using the GCS Java APIs?
body: <p>I have a &quot;directory&quot; that I've created in my Google Cloud Storage bucket.  I can list it using gsutil, and I see associated times:</p>
  <pre><code>&gt;gsutil ls -L gs://mybucket/Dir2/
  gs://mybucket/Dir2/:
      Creation time:          Thu, 11 Feb 2021 19:15:32 GMT
      Update time:            Thu, 11 Feb 2021 19:15:32 GMT
      Storage class:          STANDARD
      Content-Length:         0
      ...
  TOTAL: 1 objects, 0 bytes (0 B)
  </code></pre>
  <p>In my Java code, I am trying to retrieve the update time, but the updateTime (and the createTime) show up in the blob as being null.  Here's the relevant code:</p>
  <pre><code>blobs = bucket.list(Storage.BlobListOption.prefix(sourcePath),
                      Storage.BlobListOption.currentDirectory());
  for (Blob blob : blobs.iterateAll()) {
      // ...
      Long updateTime = blob.getUpdateTime();
      Long createTime = blob.getCreateTime();
      // ==&gt; updateTime, createTime are null, blob.isDirectory() is true
  }
  </code></pre>
  <p>For &quot;normal files&quot;, <code>isDirectory</code> is false, and there are non-null <code>updateTime</code>s and non-null <code>createTime</code>s.  How can I get the <code>updateTime</code> for a directory object?</p>