Skip to content
Browse files

fixed `.` prefixed directory ignoring in pushdocs

Fixes #119

Included sample docs for testing pushdocs.
No tests written yet, though...
  • Loading branch information...
1 parent a783257 commit 1b7dabe2345d9676ab2a5987df6865146ee4af7b @BigBlueHat BigBlueHat committed Dec 12, 2013
Showing with 5 additions and 1 deletion.
  1. +1 −1 couchapp/commands.py
  2. 0 tests/testapp/_docs/.hideme/keep
  3. +4 −0 tests/testapp/_docs/test.json
View
2 couchapp/commands.py
@@ -138,7 +138,7 @@ def pushdocs(conf, source, dest, *args, **opts):
docs = []
for d in os.listdir(source):
docdir = os.path.join(source, d)
- if docdir.startswith('.'):
+ if d.startswith('.'):
continue
elif os.path.isfile(docdir):
if d.endswith(".json"):
View
0 tests/testapp/_docs/.hideme/keep
No changes.
View
4 tests/testapp/_docs/test.json
@@ -0,0 +1,4 @@
+{
+ "_id": "test_doc",
+ "test": "ing"
+}

0 comments on commit 1b7dabe

Please sign in to comment.
Something went wrong with that request. Please try again.