mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
make tmp subfolders storage optimization
This commit is contained in:
parent
f613b44d3f
commit
bc00f0c851
1 changed files with 2 additions and 12 deletions
|
|
@ -380,22 +380,12 @@ foreach($search->get() as $document)
|
||||||
$filepath = __DIR__ . '/../../../' . $config->snap->storage->tmp->directory;
|
$filepath = __DIR__ . '/../../../' . $config->snap->storage->tmp->directory;
|
||||||
}
|
}
|
||||||
|
|
||||||
$filepath = sprintf(
|
|
||||||
'%s/%s',
|
|
||||||
$filepath,
|
|
||||||
implode(
|
|
||||||
'/',
|
|
||||||
str_split(
|
|
||||||
$md5url
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
@mkdir($filepath, 0755, true);
|
@mkdir($filepath, 0755, true);
|
||||||
|
|
||||||
$tmp = sprintf(
|
$tmp = sprintf(
|
||||||
'%s/%s.tar',
|
'%s/%s.%s.tar',
|
||||||
$filepath,
|
$filepath,
|
||||||
|
$md5url,
|
||||||
$time
|
$time
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue