diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-05-15 10:04:38 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-05-15 10:04:38 +0000 |
commit | a82f5d48a729e17382790588efc251bdea5a23f1 (patch) | |
tree | 0f9ad35a8975c32ba601a7313c06d7e301c7d9a0 /lib/modelfunctions.lua | |
parent | f21a44e55314948416f4bd59f756bec68f0ae2d5 (diff) | |
download | acf-core-a82f5d48a729e17382790588efc251bdea5a23f1.tar.bz2 acf-core-a82f5d48a729e17382790588efc251bdea5a23f1.tar.xz |
Changed os.rename to fs.move_file.
Diffstat (limited to 'lib/modelfunctions.lua')
-rw-r--r-- | lib/modelfunctions.lua | 3 |
1 files changed, 1 insertions, 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) |