Python Forum
How can I create a linked list that contains each folder with its files?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I create a linked list that contains each folder with its files?
#5
(Dec-24-2021, 10:27 PM)BashBedlam Wrote: Are you just looking for a dictionary like this?
the_linked_list = {
    'Color' : ('1.png', '2.png', '3.png'),
    'Cuerpo' : ('Body.png'),
    'Fondo' : ('Background.png'),
    'Ojos' : ('eyes1.png', 'eyes2.png', 'eyes3.png'),
    'Pinzas' : ('a.png', 'b.png', 'c.png'),
    'Puas' : ('x.png', 'y.png', 'z.png')
    }

print (the_linked_list ['Color'])

Well, that would work indeed, but how can a program manage to get the data from the folders in the path provided into that linked list?
Reply


Messages In This Thread
RE: How can I create a linked list that contains each folder with its files? - by noahverner1995 - Dec-25-2021, 07:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star Little help with my code - Linked List SantiagoPB 1 2,197 Mar-14-2021, 01:20 PM
Last Post: BashBedlam
  Linked List - Ordering by largest population with country name. PaleHorse 2 3,048 Jun-16-2020, 09:04 PM
Last Post: jefsummers
  iterating through all files from a folder gonzo620 10 8,438 Nov-06-2018, 01:48 AM
Last Post: gonzo620
  create a 20 digit string, and cast to a list then add all the digits as integers nikhilkumar 2 6,461 Jul-19-2017, 04:53 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020