Don't try to generate logs for chunking paths
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3cb59ac602
commit
9c2c42c7cc
|
@ -65,6 +65,10 @@ class Files extends Action {
|
||||||
* @param array $params
|
* @param array $params
|
||||||
*/
|
*/
|
||||||
public function create(array $params) {
|
public function create(array $params) {
|
||||||
|
if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->log(
|
$this->log(
|
||||||
'File created: "%s"',
|
'File created: "%s"',
|
||||||
$params,
|
$params,
|
||||||
|
@ -96,6 +100,10 @@ class Files extends Action {
|
||||||
* @param array $params
|
* @param array $params
|
||||||
*/
|
*/
|
||||||
public function write(array $params) {
|
public function write(array $params) {
|
||||||
|
if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->log(
|
$this->log(
|
||||||
'File written to: "%s"',
|
'File written to: "%s"',
|
||||||
$params,
|
$params,
|
||||||
|
|
Loading…
Reference in New Issue