brent s 66d1ad7af5
i am ALMOST done. just need to finish timestamp comparisons.
i can probably do it with a sorted list and comparing the last values in a remote vs. local list.
2020-06-16 02:34:05 -04:00

23 lines
294 B
Python
Executable File

#!/usr/bin/env python3
import os
import shutil
##
import logger
import fetcher
dest = '/tmp/ipxe_ftp'
path = 'ipxe'
def main():
if os.path.isdir(dest):
shutil.rmtree(dest)
f = fetcher.FTP('10.11.12.12', 21, path, dest)
f.fetch()
if __name__ == '__main__':
main()