From a82f5d48a729e17382790588efc251bdea5a23f1 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 15 May 2009 10:04:38 +0000 Subject: Changed os.rename to fs.move_file. --- lib/modelfunctions.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modelfunctions.lua b/lib/modelfunctions.lua index d7be73d..c27965d 100644 --- a/lib/modelfunctions.lua +++ b/lib/modelfunctions.lua @@ -201,8 +201,7 @@ function write_file_with_audit (self, path, str) pre(self, path, tmpfile) end - if fs.dirname(path) and not posix.stat(fs.dirname(path)) then fs.create_directory(fs.dirname(path)) end - os.rename (tmpfile, path) + fs.move_file(tmpfile, path) if (type(post) == "string" and #post) then os.execute(post) -- cgit v1.2.3