From bc00f0c8519f166c57ae579d1c25032c65782551 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 2 Dec 2023 14:39:11 +0200 Subject: [PATCH] make tmp subfolders storage optimization --- src/cli/document/crawl.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 8807eef..308f4eb 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -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 );