On Mon, 2005-07-11 at 23:38 +0000, Ernesto Guisado wrote: > # Translate paths, relative to the Weblog's URL > def expand_path( path ) > File.expand_path( path.gsub( /^\/+/, '' ), self.link.path + "/" > ).gsub(/^[A-Z]:/, '') > end
Hmm. That may (in principle) still not be very portable. File.expand_path uses whatever the native OS conventions are, which aren't require to be the same as that for URLs. The drive letter thing is just one such issue. So, probably we ought to rewrite Weblog#expand_path so it doesn't use File.expand_path at all... -mental
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Hobix-is-the-way mailing list [EMAIL PROTECTED] http://rubyforge.org/mailman/listinfo/hobix-is-the-way
