Skip to content

Disable dotfiles on boards without native usb #8346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

bill88t
Copy link

@bill88t bill88t commented Aug 29, 2023

They serve no purpose on boards without usb, other than looking ugly in the web-workflow.
Even if in the future those boards were to be accessed by ftp (which I plan on doing really soon), they do not apply.

A board with usb:

>>> import storage
>>> storage.erase_filesystem()

[17:18:05.090] Disconnected
[17:18:06.092] Warning: Could not open tty device (No such file or directory)
[17:18:06.092] Waiting for tty device..
[17:18:16.105] Connected
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.

Adafruit CircuitPython 9.0.0-alpha.1-19-g3605d891d-dirty on 2023-08-29; Waveshare ESP32-S2-Pico with ESP32S2
>>> import os
>>> os.listdir()
['.fseventsd', '.metadata_never_index', '.Trashes', '.Trash-1000', 'settings.toml', 'code.py', 'lib', 'boot_out.txt']
>>> 

A possessed board without usb:

>>> import storage
>>> storage.erase_filesystem()

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Hello World!

Code done running.

Press any key to enter the REPL. Use CTRL-D to reload.

Adafruit CircuitPython 9.0.0-alpha.1-19-g3605d891d-dirty on 2023-08-29; DFRobot Beetle ESP32-C3 with ESP32-C3FN4
>>> import os
>>> os.listdir()
['settings.toml', 'code.py', 'lib', 'boot_out.txt']
>>> 

Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense.

@tannewt tannewt merged commit 60a0a3d into adafruit:main Aug 29, 2023
@bill88t bill88t deleted the no_dotfiles_on_nonusb branch August 29, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants