when specifying an output file and downloading a file from a pseudo subdirectory, swift leaves an empty directory behind.
# rmdir bin
rmdir: failed to remove `bin': No such file or directory
# swift download CONTAINER bin/zless -o /tmp/bla
bin/zless [auth 0.332s, headers 0.546s, total 0.549s, 0.009 MB/s]
# ls -la bla
-rw-r--r-- 1 root root 2039 Sep 15 12:20 bla
# ls -la bin
total 8
drwxr-xr-x 2 root root 4096 Sep 15 12:20 ./
drwxrwxrwt 5 root root 4096 Sep 15 12:20 ../
Distributor ID: Debian
Description: Debian GNU/Linux 7.6 (wheezy)
Release: 7.6
Codename: wheezy
# dpkg -l |grep swift
ii python-swift 1.13.0-1~bpo70+1
ii python-swiftclient 1:2.0.2-2~bpo70+1
ii swift 1.13.0-1~bpo70+1
Please have a look at this review: /review. openstack. org/122301
https:/