omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    How to get an array/tuple/dictionary of files that a certain folder contains?

    Pythonista
    amount of files folder array
    2
    2
    2124
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • happy_variable
      happy_variable last edited by

      So, I tried doing it using file.read but it didn't do it for me, please help.

      Thank you.

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by ccc

        import os
        print(os.listdir('.'))
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Powered by NodeBB Forums | Contributors