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

Re: Unix Command Line - Delete command



On 12-12-10 12:24 PM, gids.rs@sasktel.net wrote:
Just finished "The Navigator" command, which now works flawlessly.
Had started on the "Undelete" command when a brainstorm hit me.  Why
not make a "Delete" command that works like the Macintosh.  So, here
are three more commands that I am currently working on to work with
the Unix Command Line.

DELETE, UNDELETE and EMPTYTRASH

DELETE (called DEL for short, so the command is distinguished from
Basic.systems Delete command) - This moves the directory entry for
the file you want to Delete, to a TRASH folder.  Also kept up to date
is, a text file of where the deleted file came from that is stored in
the trash folder.

UNDELETE - will be able to read the text file and return the
undeleted file to its original location.  If the file is not found in
the trash, then UNDELETE can perform a check to see if the file was
actually deleted and recover it then, if it has not been overwritten

EMPTYTRASH - does the actual delete of all files in the folder called
TRASH, including the text file that holds all locations

Rob


Strictly speaking the *NIX delete is "rm" (remove). This is unrecoverable. The three commands you suggest (although a good idea) do not conform to the *NIX standard. None of them can be found in the list of built-in commands.

Since I'm more of a *NIX guy these days I haven't been following your project very closely. May I suggest the three commands you propose be considered "external" commands. You could consider it to be an unrecoverable versus recoverable delete process.

				Later
				Mike