{"file_name"=>"recordings/WCR-20160409.mp3",
"file_type"=>"to_be_moved",
"page"=>"list_directory"}
i get this error:
Errno::ENOENT
in RecordingsController#move_file
No such file or directory @ sys_fail2 - (recordings/WCR-20160409.mp3, recordings/WCR-20160409.mp3)
around ... FileUtils.mv "#{from_path}", "#{to_path}"
I’m trying to move the file from the recordings/queue/ direcotry up a level to recordings/ I don’t really understand the error it looks like it’s taking both arguments, from_path and to_path and treating them as a combined first argument Anyone?
the = assignment operator assigns the values from the right side operand to the left side, it doesn’t change the value of other variables, i dunno what you mean and i dunno what #dup is ~ fugee
Because, as botp pointed out, they are referencing (pointing to) the
same object in memory.
Use
to_path = some function of params[....]
to avoid the problem. In a previous post you said you did not know
what dup does. Perhaps you should find out.