I am creating folders in public://
folder by using file_prepare_directory
function. I will create a folder while installing a module, So I want to keep that particular folder always bottom. Whenever I create new folder those should come on top. So How can I achieve this? In my case because of creating a folder while installing the module will become always on top I want that to be last. Thanks in advance for any suggestions. For example: I need like below
defaultFolder -created while installing.this should be always down.
Folder1 created later. these below 3 folder should be always up of defaultFolder
Folder2 created later
Folder3 created later
But in my case defaultFolder
is coming always on top and remaining folders are coming below of defaultFolder
folder.