lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 4/24/2012 11:34 PM, steve donovan wrote:
On Wed, Apr 25, 2012 at 3:00 AM, Wolfgang Pupp<wolfgang.pupp@gmail.com>  wrote:
Attached is a changed pl.path:
- "the normalizing multiple .."- issue is fixed.

Excellent, thank you!

- I made it so you can pick your preferred separator on windows via
path.prefer_slash, which is simply ignored if not path.is_windows

Ideally both / and \ should be just fine on Windows, but paths to tend
to be converted to 'canonical' form (lower-case, uses \)

Generally / is fine for Windows paths until you pass it to a command
that doesn't like it ;)

Or some weird filenames, for example with space at the end. Then even \ won't work, you would have to prefix it with \\?\, like c:\windows\system32 -> \\?\c:\windows\system32