ftp_list
Ftp List
List the contents of an FTP directory. Returns the directory listing as text. Supports authenticated FTP, FTPS (FTP over SSL/TLS), proxy configuration, and Tor anonymization. The URL must end with a trailing slash for directory listings.
Usage Example
1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.ftp_list(
url="https://example.com"
)
Parameters
Required
urlstringrequiredFTP URL to list (e.g., 'ftp://ftp.example.com/pub/'). Must end with / for directory listing.
Optional
usernamestringFTP username. Default: anonymous
passwordstringFTP password. Default: empty
proxy_typeenumhttphttpssocks4socks5+1 moreType of proxy server.
proxy_hoststringProxy server hostname or IP address.
proxy_portstringProxy server port number.
proxy_usernamestringUsername for proxy authentication.
proxy_passwordstringPassword for proxy authentication.
use_torbooleanUse built-in Tor proxy. Default: false
timeoutstringTimeout in milliseconds. Default: 30000
use_sslbooleanUse FTPS (FTP over SSL/TLS). Default: false
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}