Skip to content
Snippets Groups Projects
Commit a048a398 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge remote-tracking branch 'origin/gh-955-fio-abspath' into 1.6

parents fadac4ca b0e2a26b
No related branches found
No related tags found
No related merge requests found
......@@ -228,4 +228,18 @@ fio.umask = function(umask)
end
fio.abspath = function(path)
-- following established conventions of fio module:
-- letting nil through and converting path to string
if path == nil then
return nil
end
path = tostring(path)
if string.sub(path, 1, 1) == '/' then
return path
else
return fio.pathjoin(fio.cwd(), path)
end
end
return fio
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment