Diskoptimizers
11-Jun-90 23:13:05
Sb: #108332-Diskoptimizers
Fm: Don Curtis/SYSOP 76703,4321
To: Khalid Aldoseri 75166,2531
Khalid (and John),
It's got to SetFunction'ed to RENAME else saving the header block
pointer would be of very little use. The next write to the drive could
easily make that pointer invalid.
By renaming the file into the trashcan directory, it's uniform with
the WorkBench method, and the file wouldn't really be deleted until you
emptied the trash.
Ah…but isn't that a problem then??? Would not 'Empty Trash' also
attempt to go thru the DeleteFile() function? And wouldn't that attempt to
simply rename it to itself? The answer would be yes, so you'd also have to
have your function check for the current location of the file, and if
already in the trashcan…really get rid of it.
Don