diff options
-rw-r--r-- | fsemulation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fsemulation.py b/fsemulation.py index 8e89fef..7f004a0 100644 --- a/fsemulation.py +++ b/fsemulation.py @@ -440,7 +440,9 @@ class DataStore(object): @synchronised def get_size(self, object_id): - # FIXME: make use of filesize property if available + props = self.get_properties(object_id, ['filesize']) + if props.get('filesize'): + return int(props['filesize']) path = self.get_data(object_id) if not path: return 0 |