Skip to content

Commit b1db31e

Browse files
committed
Update path.py
1 parent 6cdc69c commit b1db31e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/src/fileex/path.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ def is_path(path: Any) -> bool:
1717
return True
1818
if not isinstance(path, str):
1919
return False
20-
path = Path(path).resolve()
2120
try:
22-
return path.exists()
21+
return Path(path).resolve().exists()
2322
except OSError:
2423
# If the path cannot be resolved, it is not a valid path (e.g., too long)
2524
return False

0 commit comments

Comments
 (0)