>> http://www.cflib.org/udf.cfm?ID=841 >> >> What I didn't like about this one personally was that it >> handled the >> file paths one character at a time instead of one >> directory at a time, >> which could cause problems if you had two similarly named >> directories >> or somehow had a combination of forward-and-back slashes. >> >> /myfiles/ >> /myfiles_x/ >> /myfiles_y/ >> >> If you were trying to get a path from something in >> /myfiles/ to >> something in /myfiles_x/ or vice versa it might cause a >> problem. I >> hadn't tested it, but it looked to me like that might be >> an issue.
> No, this isn't an issue. You can try it by yourself :-) Yeah, I just noticed the replace() at the top to handle the slashes and the regular expression below that removes the last directory name or portion from the shared path (which resolves what I just described above)... there were a few other things I didn't care for - nothing really huge. The function requires the source path to be provided instead of using a default of the current directory, there are two loops which could be replaced with listlen() or repeatString() respectively. The listlen() loop in particular is probably fairly inefficient as it involves an indeterminate number of find() calls. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207488 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

