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
I am trying to use datreant in one of my projects. I was trying to read a directory
my_data=dtr.Tree('/data/')
my_data.trees.children
and the second line crashes saying local variable out used before assignment.
Tried looking at the code, and it is assumed that out will exist no matter what happens.
I tried seeing which directory it failed on, and turns out there was a 'lost+found' directory
put in there by which my user did not have permission to open. When I ran scandir.walk()
on this directory, it gives nothing, and therefore, the variable out is never created.
Is there some way to make this code robust against scandir.walk() failing?
TIA,
Joy
The text was updated successfully, but these errors were encountered:
Hello!
I am trying to use datreant in one of my projects. I was trying to read a directory
and the second line crashes saying local variable out used before assignment.
Tried looking at the code, and it is assumed that out will exist no matter what happens.
I tried seeing which directory it failed on, and turns out there was a 'lost+found' directory
put in there by which my user did not have permission to open. When I ran scandir.walk()
on this directory, it gives nothing, and therefore, the variable out is never created.
Is there some way to make this code robust against scandir.walk() failing?
TIA,
Joy
The text was updated successfully, but these errors were encountered: