'LIST ignores requests for folder with names like \'-al\' and will list
the content of current folder.'

def test_LISTWithBinLsFlags(self):

    os.mkdir(os.path.join(self.directory, 'foo'))
    os.mkdir(os.path.join(self.directory, 'bar'))
    d = self._anonymousLogin()
    self._download('LIST    -aL', chainDeferred=d)
    def checkDownload(download):
        names = []
        for line in download.splitlines():
            names.append(line.split('    ')[(-1)])
        self.assertEqual(2, len(names))
        self.assertIn('foo', names)
        self.assertIn('bar', names)
    return d.addCallback(checkDownload)
