I am currently working on a small project on Raspberry Pi. I want to make my project as automated as possible. I have a code that saves videos to a USB drive. However, for it to work, I have to hardcode the path of the drive. What I am trying to do is to get a code that will automatically get the path of the USB drive connected to the pi and the videos will be saved to that USB drive. Is it possible? Any help would be much appreciated. Thanks.
Asked
Active
Viewed 206 times
0
-
1Does this answer your question? [how can the directory of a usb drive connected to a system be obtained?](https://stackoverflow.com/questions/22615750/how-can-the-directory-of-a-usb-drive-connected-to-a-system-be-obtained) – mkrieger1 Apr 06 '22 at 07:20
-
Yes, thank you very much. It is what I was searching. – Neelkanth Mawood Apr 08 '22 at 06:20