On this page
  1. posixpath.samestat
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posixpath.samestat

Prev: posixpath.sameopenfile | Up: posixpath | Next: posixpath.split
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.samestat
Tags: #public #python3 #stdlib #posixpath


Import

import posixpath
from posixpath import samestat

Signature & Overview

posixpath.samestat(s1, s2)

Test whether two stat buffers reference the same file

Usage

import posixpath, os

s = os.stat('.')
assert posixpath.samestat(s, s) is True

Gotchas

REPL Inspect

from posixpath import samestat
help(samestat)

Linked from

Related notes