Repository navigation
Conversation
|
r? @clarfonthey rustbot has assigned @clarfonthey. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors try |
This comment has been minimized.
This comment has been minimized.
fs::Dir: make absolute paths work on Windows in more situations try-job: test-x86_64-msvc*
456e77a to
f8fd835
Compare
|
@bors try |
This comment has been minimized.
This comment has been minimized.
fs::Dir: make absolute paths work on Windows in more situations try-job: test-x86_64-msvc*
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
266408f to
79e4535
Compare
|
@bors try |
This comment has been minimized.
This comment has been minimized.
fs::Dir: make absolute paths work on Windows in more situations try-job: test-x86_64-msvc*
This comment has been minimized.
This comment has been minimized.
|
@ChrisDenton looks like the Nt methods do not like paths that start with |
This comment was marked as outdated.
This comment was marked as outdated.
|
The best I can come up with is to open a dir handle for the parent directory, and then use that as the basis for the |
79e4535 to
5de9ebb
Compare
|
@bors try |
fs::Dir::rename: make absolute paths work on Windows try-job: test-x86_64-msvc*
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5de9ebb to
48c8740
Compare
|
@bors try |
This comment has been minimized.
This comment has been minimized.
fs::Dir::rename: make absolute paths work on Windows try-job: test-x86_64-msvc*
|
@rustbot ready |
|
☔ The latest upstream changes (presumably #166754) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
View all comments
View all comments
To make
Dirmore consistent between Windows and Unix, it should work on absolute paths.Dir::open_filealready had logic for that. This does something similar forDir::rename. That would make life easier for Miri when renaming from/to arbitrary files, where source and/or target may or may not be relative to aDirhandle. (Eventually we may want to reorganize this so all operations support absolute paths, as part of a larger refactoring. I'm leaving that to future work. Miri only needs this forrenamebecause for all other operations it is easy to fall back to a regular stable function infswhen noDirhandle is involved.)Tracking issue: #120426
try-job: test-x86_64-msvc*