On Fri, Jul 05, 2019 at 04:24:42PM +0100, mick crane wrote: > I doing some code in perl and I'm not very good at it. > code makes some images and saves them to a directory. > If the directory doesn't exist it gets made and if it does exist all the > files in it get deleted before putting some new ones in. Have you considered simply *not* deleting all the existing files? Just leaving them alone?