But I'm still getting the PermissionError I noted above.Īny help or insight into what might be causing the issue would be much appreciated. I would think that running this kind of program as an administrator and having changed the directory permissions, I would have permissions to actually download the file to it. import osĭbx.files_download_to_file(local_dir, 'path_to_file_in_dropbox') It might also be worth noting that the name of the file and the directory I'm trying to write it to do not have the same name. Once the router has booted up again, try to access the page that returned an error. But even with both, I'm still not getting rights to write the file to my local computer. So I've tried the only two solutions I'm finding as I investigate: 1) change the mode of the directory to '0o777' using os.chmod(), and 2) running things as an admin. PermissionError: Permission denied: 'my_directory' The error message that I'm getting in any case is this: I'm trying to download a CSV file from Dropbox using their library in Python, but I'm having quite the issue trying to get the permissions needed to be able to actually get it into the computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |