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

ntpath.samestat

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


Import

import ntpath
from ntpath import samestat

Signature & Overview

ntpath.samestat(s1, s2)

Test whether two stat buffers reference the same file

Usage

import ntpath, os

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

Gotchas

REPL Inspect

from ntpath import samestat
help(samestat)

Linked from

Related notes