projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes to the Cumulus backup format and tools.
[cumulus.git]
/
python
/
cumulus
/
__init__.py
diff --git
a/python/cumulus/__init__.py
b/python/cumulus/__init__.py
index
d86d5ed
..
d8b6814
100644
(file)
--- a/
python/cumulus/__init__.py
+++ b/
python/cumulus/__init__.py
@@
-146,7
+146,7
@@
class LowlevelDataStore:
"""Return a file-like object for reading data from the given file."""
(type, filename) = self._classify(filename)
"""Return a file-like object for reading data from the given file."""
(type, filename) = self._classify(filename)
- return self.store.get(type
,
filename)
+ return self.store.get(type
+ "/" +
filename)
def lowlevel_stat(self, filename):
"""Return a dictionary of information about the given file.
def lowlevel_stat(self, filename):
"""Return a dictionary of information about the given file.
@@
-156,7
+156,7
@@
class LowlevelDataStore:
"""
(type, filename) = self._classify(filename)
"""
(type, filename) = self._classify(filename)
- return self.store.stat(type
,
filename)
+ return self.store.stat(type
+ "/" +
filename)
# Slightly higher-level list methods.
def list_snapshots(self):
# Slightly higher-level list methods.
def list_snapshots(self):
@@
-248,7
+248,7
@@
class ObjectStore:
yield (path[1], data_obj.read())
def load_snapshot(self, snapshot):
yield (path[1], data_obj.read())
def load_snapshot(self, snapshot):
- file = self.store.lowlevel_open("snapshot-" + snapshot + ".
lb
s")
+ file = self.store.lowlevel_open("snapshot-" + snapshot + ".
cumulu
s")
return file.read().splitlines(True)
def extract_segment(self, segment):
return file.read().splitlines(True)
def extract_segment(self, segment):