diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-06-12 12:02:11 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-26 06:33:28 -0700 |
commit | bdd2242155d3192615740661ce52f6fb960d1a05 (patch) | |
tree | 54599b61d8f75e43552932b07792eefd41f21e2a /mediagoblin/storage/filestorage.py | |
parent | 0cdebda7fc533384bd725412365325edcbeb038c (diff) | |
download | mediagoblin-bdd2242155d3192615740661ce52f6fb960d1a05.tar.lz mediagoblin-bdd2242155d3192615740661ce52f6fb960d1a05.tar.xz mediagoblin-bdd2242155d3192615740661ce52f6fb960d1a05.zip |
added user upload limits
Diffstat (limited to 'mediagoblin/storage/filestorage.py')
-rw-r--r-- | mediagoblin/storage/filestorage.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mediagoblin/storage/filestorage.py b/mediagoblin/storage/filestorage.py index 3d6e0753..29b8383b 100644 --- a/mediagoblin/storage/filestorage.py +++ b/mediagoblin/storage/filestorage.py @@ -111,3 +111,6 @@ class BasicFileStorage(StorageInterface): os.makedirs(directory) # This uses chunked copying of 16kb buffers (Py2.7): shutil.copy(filename, self.get_local_path(filepath)) + + def get_file_size(self, filepath): + return os.stat(self._resolve_filepath(filepath)).st_size |