Created
January 9, 2022 23:33
-
-
Save bengalih/8e5d0d2f49f913539def7376165708c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F:\>python | |
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] on win32 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from FATtools.Volume import * | |
>>> root = vopen('F:', 'r+b') | |
>>> root.listdir() | |
['MP3S', 'System Volume Information', 'C.mp3', 'B.mp3', 'A.mp3'] | |
>>> root.sort() | |
(7, 121) | |
>>> root.listdir() | |
['MP3S', 'System Volume Information', 'C.mp3', 'B.mp3', 'A.mp3'] | |
>>> root.flush() | |
>>> root.listdir() | |
['MP3S', 'System Volume Information', 'C.mp3', 'B.mp3', 'A.mp3'] | |
>>> root.close() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: close() missing 1 required positional argument: 'handle' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@maxpat78 Just tested the following:
I was successfully able to access the drive by letter from within the OS after issuing the vclose, so it appears to function for me.
Thanks very much!