PHP-Grab-Favicon icon indicating copy to clipboard operation
PHP-Grab-Favicon copied to clipboard

Split Download Folder Into Several Sub-Dirs If There Are Lot of Icons

Open LeeThompson opened this issue 1 year ago • 1 comments

Split the download dir into several sub-dirs (MD5 segment of filename e.g. /af/cd/example.com.png) if there are a lot of favicons.

@gaffling How did you want this to work?

My general thought is if the number of requested icons > the threshold set by default, ini or switch then instead of just using local_path it will create sub-folders based on fragments of the md5 hashes of the icons for saving.

Although it might be better if it was alpha based on the domain name, like "microsoft" would go in "m/microsoft.com.ico". Perhaps there could be multiple threshold levels so perhaps "mi/microsoft.com.ico" if there are a crazy number.

LeeThompson avatar May 26 '23 00:05 LeeThompson