Add recursive filesize support to FileObject
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user