Skip to content

Instantly share code, notes, and snippets.

View jcormier's full-sized avatar

jcormier

  • Critical Link
  • Syracuse, NY
View GitHub Profile
@Phyks
Phyks / mirror_ftp.py
Last active April 26, 2022 14:30
Mirror a distant FTP using Python and lftp
#!/usr/bin/env python
"""
Simple Python wrapper around lftp to mirror a remote ftp onto a local folder.
New files are downloaded, deleted files are marked for removal in a TO_DELETE.sh
script.
"""
import os
import pprint
import re