luadocs/content/lua.scripts.api.manual/dtutils.file/file_move.md
Bill Ferguson b69d752221 [lua scripts] created manual from script comments
[lua scripts api] created manual from embedded library documentation

[lua api] created stub to contain lua api manual
2020-12-12 15:14:19 -05:00

588 B

title id weight draft author
file_move file_move 80 false people

NAME

file_move

SYNOPSIS

move a file from one directory to another

USAGE

local df = require "lib/dtutils.file"
local result = df.file_move(fromFile, toFile)

fromFile - string - name of the original file
toFile - string - the new file location and name

DESCRIPTION

Move a file from one place to another. Try a succession of methods from builtin to operating system to a pure lua solution.

RETURN VALUE

result - boolean - nil on error, some value on success