Ignore drives with .rpiignore - #1579
Conversation
|
IIRC this |
|
While this isn't an unreasonable change on the face of it, there is a performance consideration to bear in mind on Linux systems that may have many mounted devices (in particular, I note AppImages, Snaps & Flatpaks could lead to this scenario). As such, I can't merge this until I've observed the performance impact. It may be we need to cache the mountpoint file existence records - or possibly approach this by introducing a UI element and performing an inverted search. |
|
And of course this also assumes that the partition containing the |
|
All very good points. I should never have used the word "simple". ;) |
|
@andydvsn I guess you might be able to partially-placate Tom's performance concerns by moving your check to later in the function, e.g. after the |
Really simple request; I'd like the Imager to never show me external drives which have an
.rpiignorefile at the root.The reason is that I have an external drive permanently attached to my Mac, and every time I use the Imager I'm paranoid I'll zap this drive by mistake. It hasn't happened yet! But a simple check for this empty file on the root would make me a lot happier, and I think others may find it helpful too.