Should I use Filesystem API for reading files or listing directories?
I know that i should use Filesystem API to write files and I understand why but is there any difference if I read file with wp_filesystem or plain PHP? And what about listing directories?
Consider this example: In wp-content I have my-plugin-templates-folder which has to be listed by my-plugin. Does anybody met with configuration which disallow webserver process list this directory so I should use wp_filesystem?
Topic filesystem-api wp-filesystem filesystem Wordpress
Category Web