Hi Dani�l, why not simple export your current tree in a tempory tree, run the script to wipe out some stuff and than use the temporary tree to sync with the remote. After that you can remove the temporary tree. Putting support for such a specific thing in lftp seems a bit ugly. Put one thing on top of another - that's the unix way to go.
Thomas
