Added function to get the number of files in a directory
Added function to load all the filenode from a directory
Fixes
Count only files that have a digit filename
Check that the filename pointed by cache entry exists, otherwise delete cache entry.
Fixes
Use cache functions (needs testing)
Some fixes
Fixed file closing in filenode_load
Fixed filename null termination
Fixed wrong size for hashes
Copy filename to filenode
Use sizeof instead of number for hash length