Function to return relative path?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Function to return relative path?
- From: Paul Merrell <marbux@...>
- Date: 2013年11月29日 00:59:27 -0800
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.]