Galaxie Shell 0.2.6 documentation


Navigation:   | Index   | Search   | Top   | Up   | Prev   | Next   |
Table of Content: |glxshell.utilities.basename module |glxsh_basename() |

© Copyright 2020-2024, Galaxie Shell Team.

Top » glxshell » glxshell package » glxshell.utilities package » glxshell.utilities.basename module

glxshell.utilities.basename module

glxshell.utilities.basename.glxsh_basename(string=None, suffix=None)[source]

Print string with any leading directory components removed. If specified, also remove a trailing suffix.

Parameters:
  • string (str) – a string

  • suffix (str) – a string

Returns:

0 if successful completion, >0 if an error occurred.

Return type:

int

Top » glxshell » glxshell package » glxshell.utilities package » glxshell.utilities.basename 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.