Author Topic: request for feature: delete original file during save operation  (Read 2642 times)

rsanders256

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
I'd like to have an option for deleting the original file during a file save operation.  I added this via a call to delete_file inside save_file in saveload.e (SlickEdit Windows and Linux 2008 13.0.2.0).  There's probably a better implementation, but this works for now.  I'll have to read much more to learn how to add it to the Options menu.

The use case is for a file which is a Unix hard-linked file where I wish to break the link.  The original source directory is hard-linked to the working directory.  When modifying a file in the working directory I need to break the link before saving data.  This allows fast patch generation without unnecessary storage utilization. 

unpack source directory
cp -l to working directory
break links to modify files in working directory
diff -r source working > patch