[GRASS-dev] Re: [bug #4450] (grass) g.remove vect: empty dirs in the $MAPSET/.tmp/$HOSTNAME left

Markus Neteler neteler at itc.it
Sat Jun 17 13:27:55 EDT 2006


On Sat, Jun 17, 2006 at 07:12:10PM +0200, Maciek Sieczka wrote:
> On Sat, 17 Jun 2006 15:04:52 +0200 (CEST)
> Markus Neteler via RT <grass-bugs at intevation.de> wrote:
> 
> > On Sat, Jun 17, 2006 at 01:32:24PM +0200, Maciek Sieczka via RT wrote:
> > > I have built current Grass 6.1 CVS on Ubuntu Breezy with
> > > http://mpa.itc.it/markus/tmp/clean_temp2.c apllied.
> 
> > > I'd prefer each such empty dir be removed right after 'g.remove
> > > vect'is done, but maybe this is not so critical.
> 
> > This is an issue of the program creating the vector map in
> > question. Which one did you use? A script, r.* or v.*?
> 
> It is 'g.remove vect' that leaves empty temp dirs in the .tmp.

In a sense yes: 'g.remove vect' doesn't remove the empty temp dirs 
in the LOCATION/MAPSET/.tmp/

But that's not even the idea of g.remove.

> As my bug report reads:
> 
> >For each vector file it removes, g.remove leaves 1 empty, redundant
> >directory in the $MAPSET/.tmp/$HOSTNAME.
> 
> To reproduce:
> 
> 1. Create a vector file

My question was: which command did you use to create a vector file?
That command should not leave files in .tmp/. There we have to
search for the problem IMHO.

> 2. Empty your $MAPSET/.tmp/$HOSTNAME entirely.
> 3. g.remove that vector.

No - g.remove removes a vector map and doesn't care for tmp files.

Markus

> 4. See an orphaned empty dir left over.
> 
> Maciek
> 




More information about the grass-dev mailing list