Add Filesystem directories() method.
Fix Cache\FileStore's flush() method to protect .gitignore.