cli.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:ampy 作者: adafruit 项目源码 文件源码
def mkdir(directory, exists_okay):
    """
    Create a directory on the board.

    Mkdir will create the specified directory on the board.  One argument is
    required, the full path of the directory to create.

    Note that you cannot recursively create a hierarchy of directories with one
    mkdir command, instead you must create each parent directory with separate
    mkdir command calls.

    For example to make a directory under the root called 'code':

      ampy --port /board/serial/port mkdir /code
    """
    # Run the mkdir command.
    board_files = files.Files(_board)
    board_files.mkdir(directory,
                      exists_okay=exists_okay)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号