by Pexle Chris on WordPress.org
A File & Folder Viewer for FTP folders, enabling the display of library contents (folders & files) on the front-end.

library folder must be located in the root of your FTP server
Spoiler:
LIBRARY VIEWER FOR WOOCOMMERCE ADD-ON has been released! Check it 😉
With Library Viewer, you can display the containing files and the containing folders of a “specific folder” of your (FTP) server to your users in the front-end.
The significant difference from other similar plugins is that:
1. You can allow users to view that the files exist, but cannot open them if they are not logged in (or if they are not administrators, or authors etc…).
2. You can allow users to view files in a custom viewer or redirect them through a RESTful web service of your choice(examples exists below).
For this plugin (the free version), the “specific folder” is the folder
“library” of your httpdocs(yoursite.com/library).
If you want to display other folder (and its files) that isn’t contained in yoursite.com/library , you need to use the path parameter of Library Viewer Pro.
This plugin adds the [library-viewer] shortcode in your WordPress site!
So the only thing that you must do to display the folders and files in the front-end is to add this shortcode in a post, page, widget etc.
The [library-viewer] shortcode get optional parameters that extend the functionality of plugin:
PARAMETERS DOCUMENTATION AND USE CASES
PARAMETERS OF LIBRARY VIEWER
PARAMETERS OF LIBRARY VIEWER FOR WOOCOMMERCE
customer_with_folder_access value for the have_file_access parameter grants access to users who have purchased a product with folder access.)PARAMETERS OF LIBRARY VIEWER PRO
PARAMETERS OF LIBRARY VIEWER FILE MANAGER ADD-ON
PARAMETERS DOCUMENTATION AND USE CASES
From 2.0.0 version and then, there are many hooks that you can customize the functionality of this plugin.
You can read more in HOOKS DOCUMENTATION
Read also how to add PHP hooks in your WordPress Site in my blog