You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like we are trying to change the folder permissions only to be able to write in it, without checking first if we do already have the right to write in it.
I'd use a util function to do both subsequently, e.g.
defchange_permissions_if_writing_not_permitted(path: Path):
ifos.access(path, os.W_OK):
returntry:
os.chmod(path, DPDEFAULT)
exceptPermissionError:
raisePermissionError(f"You do not have the permission to write to {p}, nor to change its permissions.")
When trying to build a dataset on
data_uploader
notebook from audio files uploaded from someone else, i get a permission errorThe text was updated successfully, but these errors were encountered: