Skip to content

Commit

Permalink
Add some clarification to docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
geowurster committed Dec 12, 2017
1 parent 817df2a commit 0defe4a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rasterio/_io.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,20 @@ log = logging.getLogger(__name__)

def _delete_dataset_if_exists(path):

"""Delete dataset if it already exists. Not a substitute for
``rasterio.shutil.exists()`` and ``rasterio.shutil.delete()``.
"""Delete a dataset if it already exists. This operates at a lower
level than a:
if rasterio.shutil.exists(path):
rasterio.shutil.delete(path)
and can take some shortcuts.
Parameters
----------
path : str
Dataset path
Dataset path.
"""

cdef GDALDatasetH h_dataset = NULL
cdef const char *c_path = NULL

Expand Down

0 comments on commit 0defe4a

Please sign in to comment.