On Sat, Aug 30, 2008 at 09:48:53AM +0200, Carsten Moeller wrote:
> Everything is Ok
> cannot remove directory for
> C:\OSM\tilesAtHome\stable\tilesAtLocal\temp\tile_12_2167_1325.dir: Permi
> ssion denied at Compress.pm line 119
I am sorry I won't be able to debug. The directory is not opened, no file in
there is opened.
And nothing is locked. We have created the directory ourselves so we should
have permission to delete.
Try to debug with a small perl program and see if you can delete it while
tilesGen is not running:
#-----------------------
use File::Path
use English
rmtree "C:\OSM\tilesAtHome\stable\tilesAtLocal\temp\tile_12_2167_1325.dir";
print "$!";
#-----------------------
This would be the exact call that Compress.pm uses, so if it works from the
outside then it must be some locking issue or an open filehandle or so.
If this also fails, then we might want to try something along these lines
#-----------------------
my $dir= "C:\OSM\tilesAtHome\stable\tilesAtLocal\temp\tile_12_2167_1325.dir";
opendir(DIR, "$dir);
@files = readdir(DIR);
foreach my $file(@files) {unlink "$dir\$file"}
closedir DIR;
rmdir $dir;
#-----------------------
Try it out and see if one of the above works for you
spaetz
_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome