This code block here is actually broken.

It should be:

```python
for path in ['smartclip', 'smartclip.html', 'smartclip.pdf']:
    if api.client.get('/path/info/%s' % path).status_code >= 400:
        api.client.post('/path/oper/mkdir', path='/%s' % path)
```

This is because the ``SmartfileClient`` class -- a subclass of ``smartfile.OAuthClient`` -- returns an ``HttpResponse`` instance instead of throwing an exception internally. I did this to make it a little more "hypermedia friendly".