On Thu, 25 Jun 2009 00:30:42 +0100
Tim Abell <t...@timwise.co.uk> wrote:

> Hi all,
> 
> I've found that if tango doesn't have a working net connection
> available when you pan around it will generate empty files for the
> map images and then never attempt to re-download them leaving nasty
> gaps in your coverage.
> 
> Here's a quick n dirty script that removes all the empty files so
> that tango will fetch them next time.
> 
> 
> r...@om-gta02:~# cat cleanmapcache.sh
> 
> #!/bin/sh -v
> find Maps/OSM/ -size 0 -type f
> find Maps/OSM/ -size 0 -type f -exec rm {} \;
> 
> 
> The first line displays the empty tile list, the second deletes them.

How about this: (works if you have coreutils)
alias clean-map="find /path/Maps/OSM/ -size 0 -type f -exec rm -v {} \;"

-- 
Joseph Booker

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to