Rename file

Started by n_shvetsov, November 08, 2016, 01:18:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

n_shvetsov

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.

a1ex

For now, you need to compile the lua_fix branch to call this function.

n_shvetsov

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!