Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Commit

Permalink
bugfix biggis.landuse.api.deleteLayerFromCatalog
Browse files Browse the repository at this point in the history
  • Loading branch information
aklink committed Oct 12, 2018
1 parent 8d260b9 commit 270cd7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/biggis/landuse/api/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ package object api extends LazyLogging {
// we do this because geotrellis leaves an empty directory behind
// we could delete this step once geotrellis implementation is fixed
val layerPath = store.rootPath.suffix(s"/$layerName")
store.fs.delete(layerPath, true)
if(store.fs.exists(layerPath))
store.fs.delete(layerPath, true)
}

/**
Expand Down

0 comments on commit 270cd7c

Please sign in to comment.