changeset 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 ff45bb2adfd3
children 3dde072c3420
files core/src/luan/modules/host/Hosting.luan
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
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