@@ -0,0 +1,773 @@
+'''%0AMinion side functions for salt-ftp%0A'''%0A%0Adef recv(files, dest):%0A    '''%0A    Used with salt-ftp, pass the files dict, and the destination%0A    '''%0A    if not os.path.isdir(dest) or not os.path.isdir(os.path.dirname(dest)):%0A        return 'Destination not available'%0A    ret = %7B%7D%0A    for path, data in files.items():%0A        final = ''%0A        if os.path.basename(path) == os.path.basename(dest)%5C%0A                and not os.path.isdir(dest):%0A            final = dest%0A        elif os.path.isdir(dest):%0A            final = os.path.join(dest, os.path.basname(path))%0A        else:%0A            return 'Destination not available'%0A%0A        try:%0A            open(final, 'w+').write(data)%0A            ret%5Bfinal%5D = True%0A        except:%0A            ret%5Bfinal%5D = False%0A%0A    return ret%0A

Add minion side salt-ftp module, ready for testing