Prepare for #2013 fix
This commit is contained in:
parent
ee398ccbc2
commit
5368c8dafa
1 changed files with 7 additions and 1 deletions
|
@ -248,7 +248,13 @@ class Google extends \OC\Files\Storage\Common {
|
|||
if ($this->filetype($path) === 'dir') {
|
||||
$stat['size'] = 0;
|
||||
} else {
|
||||
$stat['size'] = $file->getFileSize();
|
||||
// Check if this is a Google Doc
|
||||
if ($this->getMimeType($path) !== $file->getMimeType()) {
|
||||
// Return unknown file size
|
||||
$stat['size'] = \OC\Files\Filesystem::FREE_SPACE_UNKNOWN;
|
||||
} else {
|
||||
$stat['size'] = $file->getFileSize();
|
||||
}
|
||||
}
|
||||
$stat['atime'] = strtotime($file->getLastViewedByMeDate());
|
||||
$stat['mtime'] = strtotime($file->getModifiedDate());
|
||||
|
|
Loading…
Reference in a new issue