We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cdc69c commit b1db31eCopy full SHA for b1db31e
1 file changed
pkg/src/fileex/path.py
@@ -17,9 +17,8 @@ def is_path(path: Any) -> bool:
17
return True
18
if not isinstance(path, str):
19
return False
20
- path = Path(path).resolve()
21
try:
22
- return path.exists()
+ return Path(path).resolve().exists()
23
except OSError:
24
# If the path cannot be resolved, it is not a valid path (e.g., too long)
25
0 commit comments