protected function getIdFromPath($path, $ext) { return substr($path, strlen($this->path) + 1, -strlen($ext) - 1); }