directory handles: add Dir::metadata#157192
Conversation
|
@bors try jobs=*apple*,*freebsd*,*various* |
This comment has been minimized.
This comment has been minimized.
directory handles: add Dir::metadata try-job: *apple* try-job: *freebsd* try-job: *various*
|
You need to add the method to the fallback impl in |
|
@bors try jobs=*apple*,*freebsd*,*various*,x86_64-msvc* |
This comment has been minimized.
This comment has been minimized.
directory handles: add Dir::metadata try-job: *apple* try-job: *freebsd* try-job: *various* try-job: x86_64-msvc*
|
LGTM, r=me when tests pass |
This comment has been minimized.
This comment has been minimized.
|
Well that's a bit tricky... |
|
There's the std-private |
|
Thanks! I had to add an |
|
💔 Test for ee502b2 failed: CI. Failed jobs:
|
|
@bors try jobs=*various*,*illumos*,*solaris* |
This comment has been minimized.
This comment has been minimized.
directory handles: add Dir::metadata try-job: *various* try-job: *illumos* try-job: *solaris*
|
@bors r=the8472 |
directory handles: add Dir::metadata Adds a `metadata` method to the `fs::Dir` type so that one can fetch the metadata of a directory directly from a handle. This is very similar to `File::metadata`. In fact we reuse the existing implementation, which reduces code duplication but also is a bit hacky. r? @the8472 Tracking issue: rust-lang#120426
Rollup merge of #157192 - RalfJung:dir-metadata, r=the8472 directory handles: add Dir::metadata Adds a `metadata` method to the `fs::Dir` type so that one can fetch the metadata of a directory directly from a handle. This is very similar to `File::metadata`. In fact we reuse the existing implementation, which reduces code duplication but also is a bit hacky. r? @the8472 Tracking issue: #120426
Adds a
metadatamethod to thefs::Dirtype so that one can fetch the metadata of a directory directly from a handle. This is very similar toFile::metadata. In fact we reuse the existing implementation, which reduces code duplication but also is a bit hacky.r? @the8472
Tracking issue: #120426