Fix bulkdata bug checking for paths ending in /

This commit is contained in:
Jim Paris 2019-08-14 13:37:46 -04:00
parent 349eec3942
commit fa011559c1

View File

@ -85,7 +85,7 @@ class BulkData(object):
return path
def _create_check_ospath(self, ospath):
if ospath[-1] == b'/':
if ospath[-1:] == b'/':
raise ValueError("invalid path; should not end with a /")
if Table.exists(ospath):
raise ValueError("stream already exists at this path")