diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php
index adbff3d301a441e3fce4808b1f2c7315dc98d7e3..5a0dbdb6fe2312f8e9edc6226bd1166900aef1d4 100644
--- a/lib/fileproxy/quota.php
+++ b/lib/fileproxy/quota.php
@@ -26,6 +26,7 @@
  */
 
 class OC_FileProxy_Quota extends OC_FileProxy{
+	static $rootView;
 	private $userQuota=-1;
 
 	/**
@@ -86,7 +87,10 @@ class OC_FileProxy_Quota extends OC_FileProxy{
 	}
 
 	public function preCopy($path1,$path2) {
-		return (OC_Filesystem::filesize($path1)<$this->getFreeSpace() or $this->getFreeSpace()==0);
+		if(!self::$rootView){
+			self::$rootView = new OC_FilesystemView('');
+		}
+		return (self::$rootView->filesize($path1)<$this->getFreeSpace() or $this->getFreeSpace()==0);
 	}
 
 	public function preFromTmpFile($tmpfile,$path) {
@@ -96,4 +100,4 @@ class OC_FileProxy_Quota extends OC_FileProxy{
 	public function preFromUploadedFile($tmpfile,$path) {
 		return (filesize($tmpfile)<$this->getFreeSpace() or $this->getFreeSpace()==0);
 	}
-}
\ No newline at end of file
+}