This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Commit dbd63bb
committed
Handle escaping in Unix file enumeration (#20784)
* Handle escaping in Unix file enumeration
We try and align with Windows, so we'll escape out [ and /.
Adds a bunch of tests and issues for other cases that we don't
match Windows behavior.
* Clarify comments, move one case
For completeness I ran everything through RtlIsNameInExpression to
validate the "correct" results. I've commented appropriately.
I moved one test to the "normal" block that I misplaced.
* Optimize the escaping a bit
* Improve perf further
* Whoops, miscopied
* More feedback1 parent d7fd784 commit dbd63bb
File tree
3 files changed
+424
-0
lines changed- src/System.IO.FileSystem
- src/System/IO
- tests/Directory
3 files changed
+424
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
507 | 522 | | |
508 | 523 | | |
509 | 524 | | |
| |||
638 | 653 | | |
639 | 654 | | |
640 | 655 | | |
| 656 | + | |
641 | 657 | | |
642 | 658 | | |
643 | 659 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
0 commit comments