Can't listdir a file
Package:
pipenv
22232

Exception Class:
ValueError
Raise code
return self.exists() and not self.is_dir()
def exists(self):
return self.at in self.root._name_set()
def iterdir(self):
if not self.is_dir():
raise ValueError("Can't listdir a file")
subs = map(self._next, self.root.namelist())
return filter(self._is_child, subs)
def __str__(self):
return posixpath.join(self.root.filename, self.at)
def __repr__(self):
Links to the raise (1)
https://github.com/pypa/pipenv/blob/e7fb099e659a7fe661f0be9d4b1d05b681b6d562/pipenv/vendor/zipp.py#L291See also in the other packages (1)
(✅️ Fixed)
zipp/can-t-listdir-a-file/
NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix