Platform-specific file path delimiters

Roger Eller roger.e.eller at sealedair.com
Fri Sep 25 08:11:58 EDT 2015


On Sep 24, 2015 5:29 AM, "Mark Waddingham" <mark at livecode.com> wrote:
>
> On 2015-09-23 21:02, Richard Gaskin wrote:
>>
>> So it looks like we're covered:  anyone looking for cross-platform
>> info can find what they need, and Windows-specific work is still
>> supported using Windows-specific path delimiters.
>
>
> Again, sorry to beat the drum again here - Windows-specific path
delimiters are supported for backwards-compatibility and no more than that,
please avoid using them for new code.
>
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps

Looking at this from a Windows-only end-users perspective, when a path is
"shown" to them in a field, or "typed" by them into a command prompt, the
separator they see and use is a backslash "\".  So you are suggesting that
every such path input by a user should have a replaceBackslashes function
called before **using** the path in code to access files or folders - even
though it works as-is.

Well, OK then.

~Roger



More information about the use-livecode mailing list