lua-users home
lua-l archive

Function to return relative path?

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


Hi, all,
To avoid reinventing the wheel, I thought I'd ask whether anyone has a
function that will return a relative path from absolute paths for the
current and destination directories? Something along the lines of:
function(curdir, destdir)
 ...
 return reldir
end
I googled around but found only a function that has dependencies.[1]
Paul
[1] <http://svn.wildfiregames.com/public/ps/trunk/build/premake/premake4/src/base/path.lua>
-- 
[Notice not included in the above original message: The U.S. National
Security Agency neither confirms nor denies that it intercepted this
message.]

AltStyle によって変換されたページ (->オリジナル) /