Mercurial Hosting > luan
comparison src/luan/host/main.luan @ 1408:5b8f76e26ab7
remove old backups
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 24 Sep 2019 15:02:33 -0600 |
parents | a5f61890ad84 |
children | 732b5de211fc |
comparison
equal
deleted
inserted
replaced
1407:1979cff9aad2 | 1408:5b8f76e26ab7 |
---|---|
120 function fns.copy_file(domain,password,dir,name,content) | 120 function fns.copy_file(domain,password,dir,name,content) |
121 local site_dir = get_dir(domain,password) | 121 local site_dir = get_dir(domain,password) |
122 site_dir or error "domain not found" | 122 site_dir or error "domain not found" |
123 local file = Io.schemes.file(dir).child(name) | 123 local file = Io.schemes.file(dir).child(name) |
124 security(site_dir,file) | 124 security(site_dir,file) |
125 file.delete() | |
126 file.write(content) | 125 file.write(content) |
127 end | 126 end |
128 | 127 |
129 function fns.mkdir(domain,password,dir,name) | 128 function fns.mkdir(domain,password,dir,name) |
130 local site_dir = get_dir(domain,password) | 129 local site_dir = get_dir(domain,password) |