Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting Q&A => Topic started by: n_shvetsov on November 08, 2016, 01:18:45 PM

Title: Rename file
Post by: n_shvetsov on November 08, 2016, 01:18:45 PM
Hi! How can I rename file? I try this:
dryos.rename ("file.cr2", "file2.cr2")
but I have error message "attempt to call a nil value (field 'rename')"

What I do wrong? Thanx.
Title: Re: Rename file
Post by: a1ex on November 09, 2016, 08:53:40 AM
For now, you need to compile the lua_fix branch to call this function.
Title: Re: Rename file
Post by: n_shvetsov on November 09, 2016, 12:41:25 PM
Oh, yes, I found this fix and one and a half day trying to compile it, but unsuccessfully (I experienced with Linux for a long time ago). Can I find out, the changes affect only lua.mo? If so, can I get it already compiled on my mail or file sharing?
If the changes affect the entire firmware, I need only to compile a brunch 'lua_fix' with a key for my camera (6D), right?

Thank you very much for your answer!