Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • FORCES FORCES
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CHSCHS
  • FORCESFORCES
  • Merge requests
  • !73

Update mo_os

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Sebastian Müller requested to merge add_change_dir into main Mar 12, 2023
  • Overview 0
  • Commits 31
  • Pipelines 19
  • Changes 6

mo_os

  • add change_dir to have a compiler independent chdir routine
  • add get_cwd to have a compiler independent getcwd routine
  • add path constants curdir, pardir, sep, extsep, linesep and devnull
  • path_splitext:
    • don't check for folder
    • ignore leading dots in tail of path
    • make root and ext optional
  • path_split:
    • remove trailing '/' from head unleass it is root (e.g. '/' or '//' or '///' and so on)
    • make head and tail optional
  • added path_dirname and path_basename (path_split's head and tail)
  • added path_root and path_ext (path_splitext's root and ext)
  • added path_stem (final path component without suffix)
  • converted path_[exists|isfile|isdir] to lowlevel functions
    • original subroutines are now called check_path_[exists|isfile|isdir]
  • added path_isabs and path_isroot checking functions
  • added path_normpath to normalize path
  • added path_abspath to get absolute path
  • added path_parts subroutine to split path into all components
  • added path_as_posix function to replace \\ with / in given path

mo_string_utils

  • added strip argument to startswith
  • add endswith function
Edited Mar 16, 2023 by Sebastian Müller
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: add_change_dir