小编Bal*_*i S的帖子

在perl中查找没有其他子文件夹的文件夹

如何在给定路径中找到没有其他子文件夹的所有文件夹?它们可能包含文件但不包含其他文件夹.

例如,给定以下目录结构:

time/aa/
time/aa/bb
time/aa/bb/something/*
time/aa/bc
time/aa/bc/anything/*
time/aa/bc/everything/*
time/ab/
time/ab/cc
time/ab/cc/here/*
time/ab/cc/there/*
time/ab/cd
time/ab/cd/everywhere/*
time/ac/
Run Code Online (Sandbox Code Playgroud)

输出find(time)应如下:

time/aa/bb/something/*
time/aa/bc/anything/*
time/aa/bc/everything/*
time/ab/cc/here/*
time/ab/cc/there/*
time/ab/cd/everywhere/*
Run Code Online (Sandbox Code Playgroud)

* 上面代表文件.

perl find

3
推荐指数
1
解决办法
726
查看次数

esp32 从 ubuntu 闪烁

我正在尝试让 esp-idf 与 ubuntu 一起工作。我在 /dev 中看到 USB tty 端口,为 /dev/ttyUSB0。在 ubuntu 中编译眨眼程序没有任何问题,但是当我尝试将映像刷新到 esp32 时,出现以下错误;

A fatal error occurred: Could not open /dev/ttyUSB0, the port doesn't exist
Run Code Online (Sandbox Code Playgroud)

run_serial_tool.cmake 处的 CMake 错误:55(消息):

/home/lenovo/.espressif/python_env/idf5.1_py3.8_env/bin/python;;/home/lenovo/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32 失败

失败:CMakeFiles/flash

我使用的是 ESP-Wroom32 开发板。我通过 eclipse ide 和 powershell 从 Windows 刷新了相同的板。所以,我知道董事会不是问题所在。有人可以提供任何线索吗?

ubuntu iot esp32

1
推荐指数
1
解决办法
2656
查看次数

标签 统计

esp32 ×1

find ×1

iot ×1

perl ×1

ubuntu ×1