# -*- coding: utf-8 -*-
"""
```
# 1.
$ cp -r ~/.zipline/data/quandl-xjpx/2016-12-28T08\;14\;58.046694 \
        /tmp/quandl-xjpx/

# 2.
$ python transform_quandl_xjpx_archive.py
```
"""
import tarfile


with tarfile.open('/tmp/quandl-xjpx.tar', 'w') as f:
    f.add('/tmp/quandl-xjpx')

# -*- coding: utf-8 -*-
"""
```
# 1.
$ cp -r ~/.zipline/data/quandl-xjpx/2016-12-28T08\;14\;58.046694 \
        /tmp/quandl-xjpx/

# 2.
$ python transform_quandl_xjpx_archive.py
```
"""
import tarfile
import os


with tarfile.open('/tmp/quandl-xjpx.tar', 'w') as f:
    os.chdir('/tmp/quandl-xjpx')
    for fn in os.listdir('.'):
        f.add(fn)

Fix bug on transform quandl archive
Fix bug on transform quandl archive
