[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: not wanting to delete somebody's home directory



On 2019-07-05 16:32, mick crane wrote:
On 2019-07-05 16:29, Greg Wooledge wrote:
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?

after they get made I rename them all in consecutive order and if
there's other files in there the number order will get messed up.

I guess the safest thing would be to keep making new directories called the current time and only delete things by hand but still would be interested if there is a solution.
--
Key ID    4BFEBB31


Reply to: