[0.21.4] client.list returns Value Error because date format does not match on Windows
- Vorherrschende Sprache
- Python
- Sterne
- 211
- Forks
- 63
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I get the following error:
```
ValueError: ('All parsers failed to parse', b'06-07-22 12:55PM 334976 opencv_frame_2.png\r\n', [KeyError('6-'), ValueError("time data '06-07-22 12:55PM' does not match format '%m/%d/%Y %I:%M %p'")])
```
I can replicate it with this simple test application.
```python
import asyncio
import aioftp
import os
async def test():
client = aioftp.Client()
await client.connect(host='127.0.0.1', port=21)
await client.login(user=os.environ['ftpusr'], password=os.environ['ftppass'])
l = await client.list('/')
print(l)
if __name__ == '__main__':
asyncio.run(test())
```
My suspicion is that it is because the parser expect a US date and not a european date?
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.