diff options
Diffstat (limited to 'lib/fs.lua')
-rw-r--r-- | lib/fs.lua | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -95,19 +95,6 @@ function md5sum_file ( path ) return checksum end -function md5sum_string ( str) - cmd = "/bin/echo -n " .. str .. "|/usr/bin/md5sum|cut -f 1 -d \" \" " - f = io.popen(cmd) - local checksum = {} - for line in f:lines() do - checksum[#checksum + 1] = line - end - f:close() - return checksum[1] -end - - - -- iterator function for finding dir entries matching filespec (what) -- starting at where, or currentdir if not specified. -- Finds regexes, not fileglobs |