It all comes back to connectivity. Om Malik (TWiST #327 @00:37:30) has a brilliant characterization of the true impact of the internet:
human emotion amplified at network scale
# do a complete folder/file listing session = Megar::Session.new(email: 'email@example.com', password: 'my_password') session.folders.each do |folder| folder.files.each do |file| puts file.name end end # upload a file file_handle = '../my_files/was_called_this.mp3' session.files.create( name: 'First.mp3', body: file_handle )Or from the command line:
$ megar -e firstname.lastname@example.org -p my_password ls $ megar -e email@example.com -p my_password put *.pdfI would still call it "experimental" at this stage because it needs more widespread hammering, and of course the Mega API is not fully documented yet. There are many more features of the API that it would be good to support, and I'd love for others to pitch in and help - go fork it on github!