Browse Source

Fix bulkdata bug checking for paths ending in /

tags/nilmdb-2.0.0
Jim Paris 3 years ago
parent
commit
fa011559c1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nilmdb/server/bulkdata.py

+ 1
- 1
nilmdb/server/bulkdata.py 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")


Loading…
Cancel
Save