Add recursive filesize support to FileObject

This commit is contained in:
2012-01-05 00:43:49 +00:00
parent fcd7be1414
commit 885d12ceb7
2 changed files with 5 additions and 9 deletions

View File

@@ -39,6 +39,10 @@ abstract class MediaListing_FileObject {
return $this->type == self::TYPE_Directory;
}
public function size() {
return MediaListing_Main::recursiveFilesize($this->path);
}
public function type() {
return $this->type;
}
@@ -50,7 +54,7 @@ abstract class MediaListing_FileObject {
public function basename() {
return $this->basename;
}
}
?>