Recently, I started to use Google Docs service quite often to work with documents and store full texts of papers in PDF. Unfortunately, it's not possible to upload multiple files at once using the web-interface. It might appear to be pretty tedious to upload a hundred documents in this way. But several days ago the ability to upload PDFs has been added to Google Data API. So I decided to make a simple Java tool to utilize this feature.
All you need is to provide path to a directory containing files to upload and your login / password for a Google account. It will recursively traverse subdirectories and upload all files. The following file formats are supported: csv, doc, docx, html, htm, ods, odt, pdf, ppt, pps, rtf, sxw, tsv, tab, txt, xls, xlsx. To use the application you need Java 1.6 or higher installed. If you don't have it, download here: http://java.sun.com/javase/6/.
There are several ways to use the program:
java -jar google-docs-upload.jar
In this case you will be prompted to enter your login / password and path.
java -jar google-docs-upload.jar <path> --recursive
You will be asked to enter login / password and directories will be traversed recursively.
java -jar google-docs-upload.jar <path> --username <username> --password <password>
Here the upload will be started immediately, but the files will be taken only from root folder.
You can download the program and the source code here: http://code.google.com/p/google-docs-upload/
I hope it will be useful for somebody :)
Update: I've added the ability to replicate folder structure in Google Docs. Another feature is determination of document duplicates, which you can replace or skip.