[augeas-devel] Remove files when corresponding tree is removed
David Lutterkort
lutter at redhat.com
Wed Feb 25 21:58:30 UTC 2009
This series of patches adds a missing feature that I've been meaning to
address for a long time: when deleting the entire subtree of a file, we
should delete the corresponding file upon save.
As an example, when you do
augtool> rm /files/etc/hosts
augtool> save
the file /etc/hosts will now be deleted (or renamed to /etc/hosts.augsave,
depending on the save mode) and you'll get a node /augeas/events/saved with
value /files/etc/hosts.
For extra fun, try 'rm /files/etc' ;)
David
More information about the augeas-devel
mailing list