Skip to content

Instantly share code, notes, and snippets.

import os
from contextlib import contextmanager
from tempfile import NamedTemporaryFile
from typing import IO, Dict, Generator, Literal
import boto3
from botocore.exceptions import ClientError
S3ConnectorMode = Literal["r", "w", "a"]
@danielballan
danielballan / download_ftp_tree.py
Last active January 12, 2023 12:10 — forked from Jwely/download_ftp_tree.py
recursive ftp directory downloader with python
import argparse
import ftplib
import os
import tqdm
import time
"""
Example usage as a CLI:
```
@Jwely
Jwely / download_ftp_tree.py
Last active March 4, 2024 11:39
recursive ftp directory downloader with python
import ftplib
import os
import re
"""
MIT license: 2017 - Jwely
Example usage:
``` python
import ftplib