hy, i wanna read all byte from a disk "E:" or my SD-card, and my code is:
with open("E:", "rb") as byteData: try: byteData.seek(self.offset.value() * 512, os.SEEK_SET) print(self.offset.value() * 512) block = byteData.read(BLOCK_SIZE) except ValueError: # Empty offsetSpinbox return
and i get error :
Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> with open("E:", "rb") as byteData: PermissionError: [Errno 13] Permission denied: 'E:'
https://stackoverflow.com/questions/65768609/python-permision-denied-to-open-a-directory-on-windows January 18, 2021 at 11:54AM
没有评论:
发表评论