Fixes stat problems on 32bit systems.

This commit is contained in:
Lars Jung 2012-10-12 13:57:27 +02:00
parent b87dc5a45b
commit 7be15da13a
2 changed files with 5 additions and 5 deletions

View file

@ -51,7 +51,7 @@ class Entry {
$this->is_folder = is_dir($this->abs_path);
$this->abs_href = $this->app->get_abs_href($abs_path, $this->is_folder);
$this->date = filemtime($this->abs_path);
$this->date = @filemtime($this->abs_path);
if ($this->is_folder) {
$this->size = null;
@ -61,7 +61,7 @@ class Entry {
$this->size = intval(preg_replace("/\s.*$/", "", `$cmd`), 10);
}
} else {
$this->size = filesize($this->abs_path);
$this->size = @filesize($this->abs_path);
}
$this->is_content_fetched = false;