mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Remove only if exists
This commit is contained in:
parent
331af6b8c1
commit
0b81198d73
4
build.rs
4
build.rs
@ -11,7 +11,9 @@ fn main() {
|
||||
let out_dir = env::var("OUT_DIR").unwrap();
|
||||
|
||||
let out = PathBuf::from(Path::new(&out_dir).join("munich-tiles"));
|
||||
fs::remove_dir_all(&out).unwrap();
|
||||
if out.exists() && out.is_dir() {
|
||||
fs::remove_dir_all(&out).unwrap()
|
||||
}
|
||||
//let out = PathBuf::from(Path::new(&root_dir).join("test-data/munich-tiles"));
|
||||
let source = Path::new(&root_dir).join("test-data/maptiler-osm-2017-07-03-v3.6.1-germany_munich.mbtiles");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user