Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé
Python 3.13.2

Contenu du module « os.path »

Liste des fonctions du module os.path

Signature de la fonction Description
abspath(path) Return the absolute version of a path. [extrait de abspath.__doc__]
basename(p) Returns the final component of a pathname [extrait de basename.__doc__]
commonpath(paths) Given an iterable of path names, returns the longest common sub-path. [extrait de commonpath.__doc__]
commonprefix(m) Given a list of pathnames, returns the longest common leading component [extrait de commonprefix.__doc__]
dirname(p) Returns the directory component of a pathname [extrait de dirname.__doc__]
expanduser(path) Expand ~ and ~user constructs. [extrait de expanduser.__doc__]
expandvars(path) Expand shell variables of the forms $var, ${var} and %var%. [extrait de expandvars.__doc__]
getatime(filename) Return the last access time of a file, reported by os.stat(). [extrait de getatime.__doc__]
getctime(filename) Return the metadata change time of a file, reported by os.stat(). [extrait de getctime.__doc__]
getmtime(filename) Return the last modification time of a file, reported by os.stat(). [extrait de getmtime.__doc__]
getsize(filename) Return the size of a file, reported by os.stat(). [extrait de getsize.__doc__]
isabs(s) Test whether a path is absolute [extrait de isabs.__doc__]
isdevdrive(path) Determines whether the specified path is on a Windows Dev Drive. [extrait de isdevdrive.__doc__]
ismount(path) Test whether a path is a mount point (a drive root, the root of a [extrait de ismount.__doc__]
isreserved(path) Return true if the pathname is reserved by the system. [extrait de isreserved.__doc__]
join(path, *paths)
normcase(s) Normalize case of pathname. [extrait de normcase.__doc__]
realpath(path, *, strict=False)
relpath(path, start=None) Return a relative version of a path [extrait de relpath.__doc__]
samefile(f1, f2) Test whether two pathnames reference the same actual file or directory [extrait de samefile.__doc__]
sameopenfile(fp1, fp2) Test whether two open file objects reference the same file [extrait de sameopenfile.__doc__]
samestat(s1, s2) Test whether two stat buffers reference the same file [extrait de samestat.__doc__]
split(p) Split a pathname. [extrait de split.__doc__]
splitdrive(p) Split a pathname into drive/UNC sharepoint and relative path specifiers. [extrait de splitdrive.__doc__]
splitext(p) Split the extension from a pathname. [extrait de splitext.__doc__]

Liste des variables globales du module os.path

Nom de la variable globale Valeur
altsep /
curdir .
defpath .;C:\bin
devnull nul
extsep .
pardir ..
pathsep ;
sep \
supports_unicode_filenames True

Liste des alias du module os.path

Nom de l'alias Définition ciblée
exists _path_exists
isdir _path_isdir
isfile _path_isfile
isjunction _path_isjunction
islink _path_islink
lexists _path_lexists
normpath _path_normpath
splitroot _path_splitroot_ex


Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé