I have string named C:/
, and I want to detect if this string is path of drive.
Apparently, it seems to be drive, but I want a code or module that determines this is a drive.
I tried os.path.isdrive
but there was no function like that.
I think answer is very simple one, but I don't know how to do this.
I'm using Python 3.8 and Window. Thanks.
question from:https://stackoverflow.com/questions/65641091/how-to-determine-drive-in-windows-using-python