Can I list the filenames within a folder?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
M-A Kuttner
Posts: 50
Joined: Mon Apr 03, 2017 3:55 pm

Can I list the filenames within a folder?

Post by M-A Kuttner » Tue Jun 14, 2022 8:53 pm

Hi all. I'm trying to get a list of all of the filenames within a folder, like what an "ls" command returns for a directory in a terminal shell. Is this possible?

Thanks in advance!

M-A
Hypertalk developer on and off since the days of SuperCard. Currently using LC to do rapid prototyping for a new kids' toy.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Can I list the filenames within a folder?

Post by FourthWorld » Tue Jun 14, 2022 9:58 pm

See the "files" function in the Dictionary, and note the nifty "detailed files" option.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Can I list the filenames within a folder?

Post by dunbarx » Tue Jun 14, 2022 10:56 pm

Hi.

What Richard said.

And if you are poking around getting files, then know that there is, as you might imagine, a "folders" function that does much the same thing. Between the two, you can poke to your hearts content.

Craig

M-A Kuttner
Posts: 50
Joined: Mon Apr 03, 2017 3:55 pm

Re: Can I list the filenames within a folder?

Post by M-A Kuttner » Wed Jun 15, 2022 6:22 pm

Thanks Craig. And thanks also Richard. I've been a Fourth World fan going back 30 years to the SuperCard forums, so I'm feeling a little starstruck at you replying. :D
Hypertalk developer on and off since the days of SuperCard. Currently using LC to do rapid prototyping for a new kids' toy.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Can I list the filenames within a folder?

Post by FourthWorld » Thu Jun 16, 2022 6:10 pm

M-A Kuttner wrote:
Wed Jun 15, 2022 6:22 pm
Thanks Craig. And thanks also Richard. I've been a Fourth World fan going back 30 years to the SuperCard forums, so I'm feeling a little starstruck at you replying. :D
Wow. Thank you.

I remember your name from the SC world. Very good to see you here. What are you working on these days?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

M-A Kuttner
Posts: 50
Joined: Mon Apr 03, 2017 3:55 pm

Re: Can I list the filenames within a folder?

Post by M-A Kuttner » Wed Jun 22, 2022 8:52 pm

Nice to be remembered, Richard!. :) I ended up being a TV producer for a number of years, and then came back to doing interactive stuff. I'm currently working with a group on an interactive toy called Snorble - https://snorble.com/. It sits in a lighted charging stand with programmable LEDs, and I was brought on to provide animation sequences for the LEDs. Long story short - The software they were using for it was not great and the company that produces it told us they'd need a seven or eight figure order in order to justify updating the software. So at that point, I said "well, I know a little programming", and now I've built a piece of custom LED animation software using LC! It's nice to dust off the old skills, for sure.
Hypertalk developer on and off since the days of SuperCard. Currently using LC to do rapid prototyping for a new kids' toy.

Post Reply