Made file and space existence validation optional

This commit is contained in:
David Wakelin 2021-08-17 12:43:07 +01:00
commit aa5450538b
5 changed files with 44 additions and 35 deletions

View file

@ -61,7 +61,7 @@ class Spaces
$spaces = [];
foreach (Result::parse($this->s3->listBuckets()['Buckets']) as $bucket) {
$spaces[$bucket['Name']] = new Space($this->s3, $bucket['Name']);
$spaces[$bucket['Name']] = new Space($this->s3, $bucket['Name'], false);
}
return $spaces;
@ -87,7 +87,7 @@ class Spaces
throw new SpaceExistsException($e->getAwsErrorMessage());
}
return new Space($this->s3, $name);
return new Space($this->s3, $name, false);
}
/**