kanso/kanso — pull request #364 by jhs (2012-02-06 13:06:46+00:00)
Title: Support uploading directories in `kanso push`

Be careful what you wish for :)

I have modifications to the traditional-couchapp package for `_docs/` support. It does not upload them like @benoitc's CouchApp; but at least it ignores the directory and prints a warning that you should use `kanso upload`.

The next problem, which this pull request fixes, is that documents can be represented as directories, where each filename is a key in the doc, and the file contents are the value. Nested directories make nested objects.

Unfortunately, `kanso upload` does not support that, so this patch allows me to at least get my work done via `kanso upload --json-dirs`.

I do not recommend merging this as-is. It's quite bad. However I wanted you to see it so we can talk about a better long-term solution. Thanks.