chipsenkbeil / typed-path

Provides typed variants of Path and PathBuf for Unix and Windows
38 stars 6 forks source link

Handle legacy devices #1

Closed chipsenkbeil closed 1 year ago

chipsenkbeil commented 2 years ago

From https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#handle-legacy-devices:

If the path is a legacy DOS device such as CON, COM1, or LPT1, it is converted into a device path by prepending \\.\ and > returned.

A path that begins with a legacy device name is always interpreted as a legacy device by the Path.GetFullPath(String) method. For > example, the DOS device path for CON.TXT is \\.\CON, and the DOS device path for COM1.TXT\file1.txt is \\.\COM1.

chipsenkbeil commented 1 year ago

Don't plan to handle this at this time. So closing out.