|
|
@@ -134,7 +134,7 @@ class BulkData(object): |
|
|
|
self.getnode.cache_remove(self, unicodepath) |
|
|
|
|
|
|
|
# Remove the contents of the target directory |
|
|
|
if not Table.exists(ospath): # pragma: no cover; should exist here |
|
|
|
if not Table.exists(ospath): |
|
|
|
raise ValueError("nothing at that path") |
|
|
|
for (root, dirs, files) in os.walk(ospath, topdown = False): |
|
|
|
for name in files: |
|
|
@@ -352,7 +352,7 @@ class Table(object): |
|
|
|
return ret |
|
|
|
|
|
|
|
# Handle single points |
|
|
|
if key < 0 or key >= self.nrows: # pragma: no cover (shouldn't occur) |
|
|
|
if key < 0 or key >= self.nrows: |
|
|
|
raise IndexError("Index out of range") |
|
|
|
(subdir, filename, offset, count) = self._offset_from_row(key) |
|
|
|
mm = self.mmap_open(subdir, filename) |
|
|
|