Skip to content

Commit

Permalink
speed up restore list
Browse files Browse the repository at this point in the history
  • Loading branch information
y4roc committed Aug 14, 2017
1 parent 7311a88 commit 3eaa9bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Model/Backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ public function setType($type)
*/
public function exist()
{
return ($this->getFile() instanceof File && $this->getFile()->exists());
/**
* @var $fs \Gaufrette\Filesystem
*/
$fs = Config::getTargetFs();
return ($fs->has($this->getAbsolutePath()));
}

public function jsonSerialize()
Expand Down

0 comments on commit 3eaa9bc

Please sign in to comment.