SHTK_FS_JOIN_PATHS(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’… SHTK_FS_JOIN_PATHS(3) ✨

okay so bestie, this is the Library Functions Manual entry for shtk_fs_join_paths β€” and it is literally just path-gluing main character energy. no cap. 🫢


🌸 NAME 🌸

shtk_fs_join_paths β€” concatenates a series of path entries πŸ’–

πŸŽ€ LIBRARY πŸŽ€

shtk_import fs

✨ SYNOPSIS ✨

shtk_fs_join_paths path1 [.. pathN]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so shtk_fs_join_paths takes a collection of path components and concatenates them, printing the result to stdout. it's giving β€œsmoosh the paths together and serve” and honestly? iconic. 🧚

the resulting path is normalized according to the rules described in shtk_fs_normalize_path(3). periodt.

πŸ‘‘ RETURN VALUES πŸ‘‘

shtk_fs_join_paths returns 0. slay. βœ…

🌈 EXAMPLES 🌈

shtk_fs_join_paths foo//bar /baz/.  # Prints ./foo/bar/baz
shtk_fs_join_paths /bin ls  # Prints /bin/ls

πŸ’œ SEE ALSO πŸ’œ

shtk(3), shtk_fs(3)

⭐ HISTORY ⭐

shtk_fs_join_paths first appeared in shtk 1.7. vintage but make it fresh, iykyk. πŸ”₯


brought to you by Debian, dated September 18, 2016 β€” mwah πŸ’‹

πŸ“¦ where this page comes from