[0.21.4] client.list returns Value Error because date format does not match on Windows
- Lingua principale
- Python
- Stelle
- 211
- Fork
- 63
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.