Skip to Content
It is currently November 22nd, 2019, 2:54 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: August 25th, 2018, 10:11 am 
Offline
Junior User
Junior User

Joined: August 23rd, 2008, 10:12 am
Posts: 67
Hi all.
Trying to figure out how to scan the sub directories on disk do I can add all folders in there to a cat. It's just for organisation of the disk.
I have tried using the SubDir command and I`m getting nowhere when I scan the folder.
I am using.......

Code:
CAT['Additions'].AddDir (Scan1,False,ipBottom);


......To add a single folder but no matter what I do I can not add more. Anyone enlighten me as to my mistake?

Steve

_________________
Steve

Without questions there is no knowledge.


Top
 Profile  
Reply with quote  
PostPosted: August 27th, 2018, 3:10 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
Change False to True.
SubDir.Queue{Bottom|Top} is only for adding files directly to the Queue, but if you want to add files to a category you have to set the SubDir parameter on the AddDir Procedure to true.

Quote:
Declaration

procedure AddDir(Dir: String; SubDir: Boolean; InsertPos: Integer);



Description

AddDir will search a directory for media files and add all the files found to the category.



Dir is the full path to the directory that will be searched.

Set SubDir to True in order to scan subdirectories as well.

InsertPos specifies the position where the songs should be inserted into the category.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group