def test_LISTWithBinLsFlags(self):
        """
        LIST ignores requests for folder with names like '-al' and will list
        the content of current folder.
        """
        os.mkdir(os.path.join(self.directory, 'foo'))
        os.mkdir(os.path.join(self.directory, 'bar'))

        # Login
        d = self._anonymousLogin()

        self._download('LIST -aL', chainDeferred=d)

        def checkDownload(download):
            names = []
            for line in download.splitlines():
                names.append(line.split(b' ')[-1])
            self.assertEqual(2, len(names))
            self.assertIn(b'foo', names)
            self.assertIn(b'bar', names)

        return d.addCallback(checkDownload)

        LIST ignores requests for folder with names like '-al' and will list
        the content of current folder.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py