You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Chris Schneider <Sc...@TransPac.com> on 2006/08/31 01:34:32 UTC

Making DFS safe from my fumbling fingers

Gang,

Here's a patch I made recently that changes the behavior of dfs -rm 
so that it moves the target fille/folder into a trash folder 
(appending a timestamp) instead of deleting it. There is also a new 
dfs -emptyTrash to empty the trash (after confirming with the user). 
I sleep easier with this in place to prevent me from accidently 
deleting my entire crawl directory.

Enjoy,

- Chris
-- 
------------------------
Chris Schneider
TransPac Software, Inc.
Schmed@TransPac.com
------------------------