chore(problem/resources): create folder when create problem

This commit is contained in:
Baoshuo Ren 2023-01-30 18:52:36 +08:00
parent 32b92f9311
commit 799bec0e5b
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -5,6 +5,7 @@
function dataNewProblem($id) { function dataNewProblem($id) {
mkdir("/var/uoj_data/upload/$id"); mkdir("/var/uoj_data/upload/$id");
mkdir("/var/uoj_data/$id"); mkdir("/var/uoj_data/$id");
mkdir(UOJContext::storagePath() . "/problem_resources/$id");
UOJLocalRun::execAnd([ UOJLocalRun::execAnd([
['cd', '/var/uoj_data'], ['cd', '/var/uoj_data'],