mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Fix some directory issues
This commit is contained in:
@@ -71,7 +71,7 @@ class ZipFileIO(file_io.KnownContentFileIO, FileIOFolderMixin):
|
|||||||
def get_last_modified(self):
|
def get_last_modified(self):
|
||||||
try:
|
try:
|
||||||
return os.path.getmtime(self._zip_path)
|
return os.path.getmtime(self._zip_path)
|
||||||
except (FileNotFoundError, PermissionError):
|
except (FileNotFoundError, PermissionError, NotADirectoryError):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ def _create_stub_map(directory_path_info):
|
|||||||
def generate():
|
def generate():
|
||||||
try:
|
try:
|
||||||
listed = os.listdir(directory_path_info.path)
|
listed = os.listdir(directory_path_info.path)
|
||||||
except FileNotFoundError:
|
except (FileNotFoundError, NotADirectoryError):
|
||||||
return
|
return
|
||||||
|
|
||||||
for entry in listed:
|
for entry in listed:
|
||||||
|
|||||||
Reference in New Issue
Block a user