ElkArte Community

Project Support => General ElkArte discussions => Topic started by: scripple on March 15, 2014, 03:26:49 pm

Title: Package Question - How to remove directories on uninstall?
Post by: scripple on March 15, 2014, 03:26:49 pm
If I say want to create a subdirectory under $themedir/css the package manager happily does that if I just put the desired install location to $themedir/css/newdir

However, on uninstall it does not remove these directories after they're empty.  Is there an equivalent to remove-file for a directory?
Title: Re: Package Question - How to remove directories on uninstall?
Post by: emanuele on March 15, 2014, 03:33:03 pm
You should be able to use the tag
Code: [Select]
remove-dir
in package-info.
Something like:
Code: [Select]
<remove-dir name="$themedir/css/newdir" />
unless it's broken...
Title: Re: Package Question - How to remove directories on uninstall?
Post by: scripple on March 15, 2014, 03:36:39 pm
Not broken I just didn't know the command and guessed remove-directory instead of remove-dir.  Thanks for the quick reply.
Title: Re: Package Question - How to remove directories on uninstall?
Post by: emanuele on March 15, 2014, 04:07:42 pm
/me takes note there is a lot to document...
Title: Re: Package Question - How to remove directories on uninstall?
Post by: scripple on March 15, 2014, 04:23:10 pm
Heh.  Yeah documentation is definitely not the exciting part of things.