https://github.com/crispy-computing-machine/hashfilestorage
HashFileStorage
https://github.com/crispy-computing-machine/hashfilestorage
Last synced: 6 months ago
JSON representation
HashFileStorage
- Host: GitHub
- URL: https://github.com/crispy-computing-machine/hashfilestorage
- Owner: crispy-computing-machine
- License: gpl-3.0
- Created: 2022-08-22T08:26:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-22T08:32:22.000Z (over 3 years ago)
- Last Synced: 2025-05-22T03:08:17.940Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Hash table / hash bucket / hash map
Folder file storage limits:.
- Windows FAT32 = 65,534
- Windows NTFS = 4,294,967,295 (unlimited)
- Max files using hash storage:
one hundred and thirty-seven billion,
four hundred and thirty-eight million,
nine hundred and fifty-three thousand,
four hundred and forty
Linux (uname -r to find ext):
- ext2/ext3 = 10,000
- ext4 = unlimited
```
// Test storage of multi files in multi folders
$oStorage = new HashFileStorage();
for($i = 0; $i <= 1000; $i++){
$sTestFilename = uniqid("store_");
$sTestFileText = "This file contains text for file: " . $sTestFilename;
$bSave = $oStorage->file_put_contents($sTestFilename, $sTestFileText);
error_log("Saving HashFileStorage file: " . $sTestFilename . " (" . var_export($bSave, TRUE) . ")");
}
```