How to Control Folder / File Access?
We have an options called "Make File Private/Make Folder Private," which restricts visibility of files and folders to the users.
The Make Folder Private option when enabled both Organization wide as well as User/Profile the folder access can be controlled. When this option is enabled the folders when created only owner will have access to the folder unless shared with users/profiles.
Organizatio

(For folders created using the component, when "Make Folder Private" is enabled, we create a record in the Custom Folder Info(XFILES__Custom_Folder_Info__c) object. The Share field(XFILES__Share__c) holds the user or profile IDs of those who can access the specified folder.)
The Make File Private option when enabled both Organization wide as well as User/Profile wise the file access can be controlled. When this option is enabled and the file is uploaded then only owner will have access to the files unless shared with users/profiles.
(For each file uploaded via the XfilesPro Bisync component, we create a record in a custom object called External Content Detail(XFILES__External_Content_Detail__c). This object contains a field called Share(XFILES__Share__c), which stores the user or profile IDs of those who have access to the specified file.)