changeset 619:cc3a68033179

fix hosting delete logging
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 03 Jan 2016 02:03:54 -0700
parents 5e495e4e560b
children 89eb02f9827f
files core/src/luan/modules/host/Hosting.luan
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r 5e495e4e560b -r cc3a68033179 core/src/luan/modules/host/Hosting.luan
--- a/core/src/luan/modules/host/Hosting.luan	Fri Jan 01 01:24:10 2016 -0700
+++ b/core/src/luan/modules/host/Hosting.luan	Sun Jan 03 02:03:54 2016 -0700
@@ -44,8 +44,9 @@
 				there.children[name] = nil
 			end
 			for _, there_child in pairs(there.children) do
-				print("deleting "..there_child.name)
-				host.delete_unused(domain,password,there_child.path)
+				if host.delete_unused(domain,password,there_child.path)==true then   -- remove ==true later
+					print("deleted "..there_child.name)
+				end
 			end
 		else
 			error "not file or dir"