mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
18 lines
570 B
Python
18 lines
570 B
Python
import sys
|
|
from _typeshed import AnyPath
|
|
from os.path import commonprefix as commonprefix
|
|
from typing import Text
|
|
|
|
def exists(path: AnyPath) -> bool: ...
|
|
def isfile(path: Text) -> bool: ...
|
|
def isdir(s: Text) -> bool: ...
|
|
def getsize(filename: Text) -> int: ...
|
|
def getmtime(filename: Text) -> float: ...
|
|
def getatime(filename: Text) -> float: ...
|
|
def getctime(filename: Text) -> float: ...
|
|
|
|
if sys.version_info >= (3, 4):
|
|
def samestat(s1: str, s2: str) -> int: ...
|
|
def samefile(f1: str, f2: str) -> int: ...
|
|
def sameopenfile(fp1: str, fp2: str) -> int: ...
|