🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    new folders

    Scheduled Pinned Locked Moved Micropython
    4 Posts 3 Posters 6.7k Views 1 Watching
    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.
    • W Offline
      Wolli01
      last edited by

      How can I create new folders on the M5Stack under VSC?

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL Offline
        lukasmaximus
        last edited by

        Hi @Wolli01 although there is a little plus button next to each folder once you have connected your m5stack to vscode, this will only generate files. To create a folder you need to open a terminal in vscode or your native terminal application on your computer, start a serial communication with
        screen /dev/tty.SLAB_USBtoUART 115200
        then hit ctrl + c to kill any current processes
        type import os
        to import the python operating system module which will allow you to browse the file system, create folders, delete files etc..

        then use the command mkdir('name of folder')
        to create a new folder with a name of your choice

        W 1 Reply Last reply Reply Quote 0
        • W Offline
          Wolli01 @lukasmaximus
          last edited by

          @lukasmaximus Thank You

          1 Reply Last reply Reply Quote 0
          • D Offline
            danswett
            last edited by

            I'm trying to do this on the M5StickC and the "mkdir" command doesn't work. It just says "NameError: name 'mkdir' isn't defined"

            Is there a different module on the M5StickC that holds these file system commands?

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post