de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Folder List
PostPosted: Thu Apr 30, 2015 12:25 pm 
Offline
Veteran
User avatar
Not sure if this is possible but I was wanting to allow users to have different sets of cards for the SexCards script. It would be handy for the script to be able to detect new card files was trying something like:

Code:
import groovy.io.FileType
def list = []
def dir = new File("scripts/Sex_Cards")
dir.eachFileRecurse (FileType.FILES) { file ->
  list << file
}
def file_list = ""
list.each {
  file_list += it.path
}


But it was not happy. Anyone have any ideas? It may also be nice in some other scripts for selecting random images etc.. :)

_________________
Liz

You can't take something off the Internet - it's like taking pee out of a pool.
https://play-clan.site profile: Liz


Top
 Profile Send private message 
 
 Re: Folder List
PostPosted: Thu Apr 30, 2015 12:35 pm 
Offline
Site Admin
User avatar
No import in the script, but you can do :
Code:
def list = []
def dir = new File("scripts/Sex_Cards")
dir.eachFileRecurse (groovy.io.FileType.FILES) { file ->
  list << file
}
def file_list = ""
list.each {
  file_list += it.path
}


Top
 Profile Send private message 
 
 Re: Folder List
PostPosted: Thu Apr 30, 2015 1:05 pm 
Offline
Veteran
User avatar
Thanks, that works for me

_________________
Liz

You can't take something off the Internet - it's like taking pee out of a pool.
https://play-clan.site profile: Liz


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 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:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.