43081j / 43081j/standardglob

Windows-Specific Behaviors (`\` separator, UNC, DOS paths)

Aperta
#5 4 commenti 1 reazione 0 assegnatari Vedi su GitHub
essential decision
Lingua principale
Nessun dato sulla lingua
Stelle
4
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Windows Path Separators

How should the spec handle Windows separator (WS) support?

- They conflict with the escape operator (i.e. `foo/bar \[biz\]/*`)
- Some libraries support normalizing them to UNIX separators.
- quietly normalizes
- `zeptomatch` TODO: see how it handles the normalization
- `minimatch` matches Windows separators only on Windows
- requires UNIX separators
- `micromatch`
- `picomatch`

### Decisions

- [ ] How should the spec explicitly define WS handling?
- Forbid any WS? Allow normalizing? Require normalizing?

## [UNC Paths](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths)

Universal naming convention (UNC) paths are special Windows-exclusive paths that are mainly intended for accessing network resources

Format: `\\{server/hostname/ip}\{share name}\{path}`

Example: `\\nas\data\foo\bar.txt`

### Decisions

- [x] Explicitly do not support UNC paths, too much complexity.

## [DOS Decvice Paths](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths)

Examples:
- `\\?\C:\Test\Foo.txt`
- `\\.\Volume{b75e2c83-0000-0000-0000-602f00000000}\Test\Foo.txt`
- `\\.\UNC\Server\Share\Test\Foo.txt`
- `\\.\BootPartition\Test\Foo.txt`

### Decisions

- [x] Explicitly do not support DOS Device paths, too much complexity.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.