08-29-2019, 07:31 PM
(This post was last modified: 08-29-2019, 07:33 PM by Tim Curtis.
Edit Reason: etc
)
I suppose for minimServer it would suffice to just list the top directories. Can you post with maxdepth 1 ? thanks.
So basically:
// miniDLNA - list 2 levels of dirs under "Browse Folders"
if exist /mnt/UPNP/SERVER_NAME/Browse Folders then find /mnt/UPNP/SERVER_NAME/Browse Folders -maxdepth 2 -type d
- filter out dotdirs and _search
// minimServer, other - list top level dirs under server root
else find /mnt/UPNP/SERVER_NAME -maxdepth 1 -type d
So basically:
// miniDLNA - list 2 levels of dirs under "Browse Folders"
if exist /mnt/UPNP/SERVER_NAME/Browse Folders then find /mnt/UPNP/SERVER_NAME/Browse Folders -maxdepth 2 -type d
- filter out dotdirs and _search
// minimServer, other - list top level dirs under server root
else find /mnt/UPNP/SERVER_NAME -maxdepth 1 -type d