Comparison

util/datamanager.lua @ 5244:775d98184acf

util.datamanager: Remove unused variable
author Kim Alvefur <zash@zash.se>
date Fri, 14 Dec 2012 14:25:58 +0100
parent 5243:07e8256efcda
child 5250:6d8ec8c90240
comparison
equal deleted inserted replaced
5243:07e8256efcda 5244:775d98184acf
338 return true 338 return true
339 end 339 end
340 340
341 function purge(username, host) 341 function purge(username, host)
342 local host_dir = format("%s/%s/", data_path, encode(host)); 342 local host_dir = format("%s/%s/", data_path, encode(host));
343 local deleted = 0;
344 local errs = {}; 343 local errs = {};
345 for file in lfs.dir(host_dir) do 344 for file in lfs.dir(host_dir) do
346 if lfs.attributes(host_dir..file, "mode") == "directory" then 345 if lfs.attributes(host_dir..file, "mode") == "directory" then
347 local store = decode(file); 346 local store = decode(file);
348 local ok, err = do_remove(getpath(username, host, store)); 347 local ok, err = do_remove(getpath(username, host, store));