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

    new folders

    Micropython
    3
    4
    5.4k
    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
      Wolli01
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL
        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
          Wolli01 @lukasmaximus
          last edited by

          @lukasmaximus Thank You

          1 Reply Last reply Reply Quote 0
          • D
            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
            • First post
              Last post