Skip to content

Commit

Permalink
Create an empty README.md in case it doesn't exist (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mejo- committed Aug 22, 2020
1 parent 32fba84 commit bf84053
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Mount/MountProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ public function getFolder(int $id, bool $create = true): ?Folder {
return null;
}

if ($create && !$folder->nodeExists(self::LANDING_PAGE)) {
$folder->newFile(self::LANDING_PAGE);
}

return $folder;
}
}

0 comments on commit bf84053

Please sign in to comment.