Skip to content
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

Mount point directory is not hidden when a filesystem is mounted on it #9954

Open
dhalbert opened this issue Jan 12, 2025 · 2 comments
Open
Labels
Milestone

Comments

@dhalbert
Copy link
Collaborator

Noted as a result of https://forums.adafruit.com/viewtopic.php?t=215933

Adafruit CircuitPython 9.2.1-54-g26283dcb02 on 2025-01-06; Adafruit Metro ESP32S3 with ESP32S3
>>> import sdcardio,storage,board,os
>>> os.listdir()
['.fseventsd', '.metadata_never_index', '.Trashes', '.Trash-1000', 'sd', 'settings.toml', 'lib', 'boot_out.txt',  'ble_uart_echo_client.py']
>>> sdcard = sdcardio.SDCard(board.SPI(), board.SD_CS)
>>> vfs = storage.VfsFat(sdcard)
>>> storage.mount(vfs,"/sd")
>>> os.listdir()
# Now there are two 'sd` entries.
['sd', '.fseventsd', '.metadata_never_index', '.Trashes', '.Trash-1000', 'sd', 'settings.toml', 'lib', 'boot_out.txt',  'ble_uart_echo_client.py']
# But in this filesystem, there is only one.
>>> os.listdir(".")
['.fseventsd', '.metadata_never_index', '.Trashes', '.Trash-1000', 'sd', 'settings.toml', 'lib', 'boot_out.txt',  'ble_uart_echo_client.py']
>>> 
@dhalbert dhalbert added this to the Long term milestone Jan 12, 2025
@RetiredWizard
Copy link

This might be simpler to solve than the other VfsFat mount point issues, but just in case someone's digging around, I figured I'd link a couple possibly related issues #9045 and #8409

@dhalbert
Copy link
Collaborator Author

Though the extra listing is confusing, it does not seem to affect actual functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants