Mercurial Hosting > luan
comparison src/luan/modules/host/Hosting.luan @ 1788:0a06d59578aa
add push_file
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 22 Dec 2023 09:48:52 -0700 |
parents | b82767112d8e |
children |
comparison
equal
deleted
inserted
replaced
1787:aed284cae1f0 | 1788:0a06d59578aa |
---|---|
82 local there = host.get(domain,password) | 82 local there = host.get(domain,password) |
83 there~=nil or error "site not created" | 83 there~=nil or error "site not created" |
84 for _, s in ipairs(path) do | 84 for _, s in ipairs(path) do |
85 there = there.children[s] or error("'"..s.."' not found on remote") | 85 there = there.children[s] or error("'"..s.."' not found on remote") |
86 end | 86 end |
87 print("copying "..my_file.to_string()) | |
87 host.copy_file(domain,password,there.path,my_file.name(),my_file.read_binary()) | 88 host.copy_file(domain,password,there.path,my_file.name(),my_file.read_binary()) |
88 host.update_handler(domain,password) | 89 host.update_handler(domain,password) |
89 host.close() | 90 host.close() |
90 end | 91 end |
91 | 92 |