GSoC Commit #1: LuCId + HTTP-Server
[project/luci.git] / libs / nixio / lua / nixio / fs.lua
index f745ffe..35d20b2 100644 (file)
@@ -79,7 +79,7 @@ function copy(src, dest)
                end
        elseif stat.type == "lnk" then
                res, code, msg = nixio.symlink(nixio.readlink(src), dest)
-       else
+       elseif stat.type == "reg" then
                res, code, msg = datacopy(src, dest)
        end