make tmp subfolders storage optimization

This commit is contained in:
ghost 2023-12-02 14:39:11 +02:00
parent f613b44d3f
commit bc00f0c851

View File

@ -380,22 +380,12 @@ foreach($search->get() as $document)
$filepath = __DIR__ . '/../../../' . $config->snap->storage->tmp->directory;
}
$filepath = sprintf(
'%s/%s',
$filepath,
implode(
'/',
str_split(
$md5url
)
)
);
@mkdir($filepath, 0755, true);
$tmp = sprintf(
'%s/%s.tar',
'%s/%s.%s.tar',
$filepath,
$md5url,
$time
);