Galaxie Shell 0.2.6 documentation


Navigation:   | Index   | Search   | Top   | Up   | Prev   | Next   |
Table of Content: |glxshell.lib.path module |abspath() |basename() |commonprefix() |dirname() |exists() |expanduser() |getcwd() |isabs() |isdir() |isfile() |islink() |joinpath() |lexists() |normcase() |normpath() |realpath() |relpath() |split() |splitdrive() |splitext() |

© Copyright 2020-2024, Galaxie Shell Team.

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.path module

glxshell.lib.path module

glxshell.lib.path.abspath(path)[source]

Return an absolute path.

glxshell.lib.path.basename(string=None, suffix=None)[source]
glxshell.lib.path.commonprefix(m)[source]

Given a list of pathnames, returns the longest common leading component

glxshell.lib.path.dirname(path)[source]
glxshell.lib.path.exists(path)[source]
glxshell.lib.path.expanduser(s)[source]
glxshell.lib.path.getcwd()[source]
glxshell.lib.path.isabs(path)[source]

Test whether a path is absolute

glxshell.lib.path.isdir(path)[source]
glxshell.lib.path.isfile(path)[source]
glxshell.lib.path.joinpath(*args)[source]

Join two or more pathname components, inserting ‘/’ as needed. If any component is an absolute path, all previous path components will be discarded. An empty last part will result in a path that ends with a separator.

Parameters:

args (any) – components it will compose teh pathname

Returns:

A pathname composed by components joins by ‘/’

Return type:

str

glxshell.lib.path.lexists(path)[source]
glxshell.lib.path.normcase(path)[source]

Normalize case of pathname. Has no effect under Posix

glxshell.lib.path.normpath(path)[source]

Normalize path, eliminating double slashes, etc.

glxshell.lib.path.realpath(filename, *, strict=False)[source]

Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.

glxshell.lib.path.relpath(path, start=None)[source]

Return a relative version of a path

glxshell.lib.path.split(path)[source]
glxshell.lib.path.splitdrive(path)[source]
glxshell.lib.path.splitext(path)[source]

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.path module

© Copyright 2020-2024, Galaxie Shell Team.
This page is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 8.0.2.