Browse Source

make tmp subfolders storage optimization

main
ghost 1 year ago
parent
commit
bc00f0c851
  1. 14
      src/cli/document/crawl.php

14
src/cli/document/crawl.php

@ -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…
Cancel
Save