# HG changeset patch # User Jeff Hammel # Date 1312264585 25200 # Node ID f7fa35f972f4c02174e6a2b7fba49657b8cb0728 # Parent 6bf82220a04cee67c507df3a67883e86f40ff667 more stubbing diff -r 6bf82220a04c -r f7fa35f972f4 document_it.py --- a/document_it.py Mon Aug 01 22:51:12 2011 -0700 +++ b/document_it.py Mon Aug 01 22:56:25 2011 -0700 @@ -111,11 +111,18 @@ if options.list: for item in files: print '%s -> %s/%s' % (item[0], baseurl.rstrip('/'), item[1].lstrip('/')) - # render and upload READMEs if options.directory: - pass + + # create a directory if needed + if os.path.exists(options.directory): + assert os.path.isdir(options.directory), "'%s' - not a directory" % options.directory + else: + os.makedirs(options.directory) + + # TODO render to directory + else: # TODO check credentials raise NotImplementedError diff -r 6bf82220a04c -r f7fa35f972f4 example.manifest --- a/example.manifest Mon Aug 01 22:51:12 2011 -0700 +++ b/example.manifest Mon Aug 01 22:56:25 2011 -0700 @@ -1,3 +1,3 @@ #!/usr/bin/env document-it -README.txt \ No newline at end of file +README.txt DocumentIt \ No newline at end of file