Skip to content

Commit e979be2

Browse files
committed
feat(Lib/os.path): samestat
1 parent 85ee4ec commit e979be2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pylib/Lib/os_impl/path.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,7 @@ func join*[T](a, b, c: PathLike[T], ps: varargs[PathLike[T]]): T =
9898
result = mapPathLike[T] joinPath(a.fspath, b.fspath)
9999
for p in ps:
100100
result = mapPathLike[T] joinPath(result, p.fspath)
101-
101+
102+
proc samestat*(s1, s2: stat_result): bool =
103+
return (s1.st_ino == s2.st_ino and
104+
s1.st_dev == s2.st_dev)

0 commit comments

Comments
 (0)