Hi there,
I'm trying to make a connection to an FTP filestorage, using the "ftplib" python library.
As it seems however, I'm able to connect and log in, but after that I am unable to perform certain actions.
I'm able to perform simple stuff like size, set_pasv, cwd, mkd, but when it comes to for example listing files in the server with dir or retrlines, it seems to just keep loading before eventually being disconnected by the ftp server (usually [Errno 104] Connection reset by peer).
Anyone able to help me with this?
All I'm trying to do initially is setting up a client with connect(), logging in and turning off passive mode (doesnt work with passive mode on either). Then trying to get a list of files/folders.
Here are the methods I'm talking about in ftplib: https://docs.python.org/3/library/ftplib.html#ftp-objects
Side note: most of this stuff does work when I try it in a local environment, seems to be that odoo.sh handles this differently?
Thanks in advance!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
2856
Lượt xem
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 1 25
|
9309 | ||
|
0
thg 3 22
|
2502 | ||
|
2
thg 8 25
|
3379 | ||
|
1
thg 8 24
|
3144 | ||
|
1
thg 3 24
|
2256 |