Jppy: Automatically remove files after they've been installed - SOLUTION
Nicholas Piper
nick@nickpiper.co.uk
Mon Nov 10 13:34:16 GMT 2008
Jon,
On Mon, 10 Nov 2008, Jon Schewe wrote:
> I have some plucker files installed on my Palm every day by a script
> writing them to jpilot_to_install, but I found that I need to manually
> delete the files so that they don't get picked up by the script the next
> day. I also found that sometimes they failed to install, so I need to be
> careful about this. So I figured out a way to do this with jppy. If you
> put the following in your jpilot_user.py and have trash installed it'll
> work nicely. If trash isn't installed replace the trash call with rm.
> trash is a handy utility that uses the standard trash directories to
> delete files and allow you to undelete them.
Thanks :-)
Please would you add this (if you're happy to do so) to the jppy
examples directory?
Nick
More information about the Jppy
mailing list