comparison blog/src/private/tools/backup.luan @ 751:558740169005

improve file delete()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 Jul 2016 15:56:19 -0600
parents ca169567ce07
children
comparison
equal deleted inserted replaced
750:f172f1dff4b6 751:558740169005
4 4
5 5
6 return function() 6 return function()
7 local backup = Io.uri "site:/private/local/backup.zip" 7 local backup = Io.uri "site:/private/local/backup.zip"
8 backup.delete() 8 backup.delete()
9 Db.backup(backup.to_string()) 9 Db.backup(backup)
10 10
11 Io.stdout = Http.response.text_writer() 11 Io.stdout = Http.response.text_writer()
12 %> 12 %>
13 <html> 13 <html>
14 <body> 14 <body>