private function __construct($app, $path) { $this->app = $app; $this->path = normalize_path($path, false); $this->is_folder = is_dir($this->path); $this->url = $app->to_url($this->path, $this->is_folder); $this->date = @filemtime($this->path); $this->size = Item::filesize($app, $this->path); $this->is_content_fetched = false; // $options = $app->get_options(); // if (!$this->is_folder && $options["hashes"]["enabled"]) { if (!$this->is_folder) { // $this->md5 = md5_file($this->path); // $this->sha1 = sha1_file($this->path); $this->md5 = null; $this->sha1 = null; } else { $this->md5 = null; $this->sha1 = null; } }