1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-27 05:37:03 +00:00

14 lines
242 B
PHP

<?php
return function ($type) {
if ($type == 'up') {
DB::init();
$problems = DB::selectAll("select id from problems");
foreach ($problems as $row) {
mkdir(UOJContext::storagePath() . "/problem_resources/{$row['id']}");
}
}
};