Mercurial Hosting > luan
diff core/src/luan/modules/host/Hosting.luan @ 633:c5baaa525897
don't push hidden files to luanhost
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 25 Feb 2016 02:04:57 -0700 |
parents | cc3a68033179 |
children | ca169567ce07 |
line wrap: on
line diff
--- a/core/src/luan/modules/host/Hosting.luan Tue Jan 26 06:34:28 2016 -0700 +++ b/core/src/luan/modules/host/Hosting.luan Thu Feb 25 02:04:57 2016 -0700 @@ -7,6 +7,8 @@ local Io = require "luan:Io" local print = Io.print or error() local Rpc = require "luan:Rpc" +local String = require "luan:String" +local matches = String.matches or error() local M = {} @@ -40,8 +42,10 @@ end for _, here_child in ipairs(here.children()) do local name = here_child.name() - process(there,there.children[name],here_child) - there.children[name] = nil + if not matches(name,[[^\.]]) then + process(there,there.children[name],here_child) + there.children[name] = nil + end end for _, there_child in pairs(there.children) do if host.delete_unused(domain,password,there_child.path)==true then -- remove ==true later