So...in Barney's example:
P = expandPath("...");
P = replace(P, "/", "\", "all");
P = replace(P, "\", "\\", "all");
I would have "/" in the first line above.
Then, end up with "\" in the second.
And, "\\" in the third.
Or, is that right?
In the first line, would the expandPath operate on the path before the P is
set,
thereby creating P = "d:\inetpub\webroot\filePath\fileName"
or is P set to equal a non-translated
string, "expandPath('/filePath/fileName')"
It can't be the second result, because that would create
"expandPath('\filePath\fileName')",
after Barney's second function above is run...which wouldn't work with the
"\" instead of "/", right?
Hmmm...guess I need to write some test code...
On Wed, Jun 10, 2009 at 1:09 AM, James Holmes <[email protected]>wrote:
>
> Because \ is the escape character, not /. / is valid and doesn't get
> interpreted as something else.
>
> mxAjax / CFAjax docs and other useful articles:
> http://www.bifrost.com.au/blog/
>
> 2009/6/10 Rick Faircloth <[email protected]>:
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323327
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4